about summary refs log tree commit diff stats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20190313123149_add_start_and_end_dates_to_game.rb8
-rw-r--r--db/schema.rb4
2 files changed, 11 insertions, 1 deletions
diff --git a/db/migrate/20190313123149_add_start_and_end_dates_to_game.rb b/db/migrate/20190313123149_add_start_and_end_dates_to_game.rb new file mode 100644 index 0000000..7803344 --- /dev/null +++ b/db/migrate/20190313123149_add_start_and_end_dates_to_game.rb
@@ -0,0 +1,8 @@
1class AddStartAndEndDatesToGame < ActiveRecord::Migration[5.2]
2 def change
3 change_table :games do |c|
4 c.date :started_on
5 c.date :finished_on
6 end
7 end
8end
diff --git a/db/schema.rb b/db/schema.rb index c5c794f..0ae9b11 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
13ActiveRecord::Schema.define(version: 2019_03_12_193154) do 13ActiveRecord::Schema.define(version: 2019_03_13_123149) do
14 14
15 create_table "audits", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| 15 create_table "audits", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t|
16 t.integer "auditable_id" 16 t.integer "auditable_id"
@@ -65,6 +65,8 @@ ActiveRecord::Schema.define(version: 2019_03_12_193154) do
65 t.integer "score" 65 t.integer "score"
66 t.datetime "created_at", null: false 66 t.datetime "created_at", null: false
67 t.datetime "updated_at", null: false 67 t.datetime "updated_at", null: false
68 t.date "started_on"
69 t.date "finished_on"
68 end 70 end
69 71
70 create_table "links", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| 72 create_table "links", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t|