diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180811215146_create_links.rb | 10 | ||||
-rw-r--r-- | db/schema.rb | 9 |
2 files changed, 18 insertions, 1 deletions
diff --git a/db/migrate/20180811215146_create_links.rb b/db/migrate/20180811215146_create_links.rb new file mode 100644 index 0000000..0e0ca29 --- /dev/null +++ b/db/migrate/20180811215146_create_links.rb | |||
@@ -0,0 +1,10 @@ | |||
1 | class CreateLinks < ActiveRecord::Migration[5.1] | ||
2 | def change | ||
3 | create_table :links do |t| | ||
4 | t.string :title, null: false | ||
5 | t.string :url, null: false | ||
6 | |||
7 | t.timestamps | ||
8 | end | ||
9 | end | ||
10 | end | ||
diff --git a/db/schema.rb b/db/schema.rb index 192c9c1..58891d3 100644 --- a/db/schema.rb +++ b/db/schema.rb | |||
@@ -10,7 +10,7 @@ | |||
10 | # | 10 | # |
11 | # It's strongly recommended that you check this file into your version control system. | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 | ||
13 | ActiveRecord::Schema.define(version: 20180707142420) do | 13 | ActiveRecord::Schema.define(version: 20180811215146) do |
14 | 14 | ||
15 | create_table "blogs", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin" do |t| | 15 | create_table "blogs", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin" do |t| |
16 | t.string "title" | 16 | t.string "title" |
@@ -35,6 +35,13 @@ ActiveRecord::Schema.define(version: 20180707142420) do | |||
35 | t.index ["type"], name: "index_ckeditor_assets_on_type" | 35 | t.index ["type"], name: "index_ckeditor_assets_on_type" |
36 | end | 36 | end |
37 | 37 | ||
38 | create_table "links", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci" do |t| | ||
39 | t.string "title", null: false | ||
40 | t.string "url", null: false | ||
41 | t.datetime "created_at", null: false | ||
42 | t.datetime "updated_at", null: false | ||
43 | end | ||
44 | |||
38 | create_table "pokeviewer_abilities", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin" do |t| | 45 | create_table "pokeviewer_abilities", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin" do |t| |
39 | t.string "name", null: false | 46 | t.string "name", null: false |
40 | t.string "description", null: false | 47 | t.string "description", null: false |