about summary refs log tree commit diff stats
path: root/db
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2019-03-13 10:18:45 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2019-03-13 10:18:45 -0400
commitbcf6445d92f1a57dff0b97bd9309f40b70088448 (patch)
tree94d908f819d4e1360b37ea794b26fde4dde81944 /db
parent837537b14b01a8c7504b786e1bbf7a350c21242a (diff)
downloadthoughts-bcf6445d92f1a57dff0b97bd9309f40b70088448.tar.gz
thoughts-bcf6445d92f1a57dff0b97bd9309f40b70088448.tar.bz2
thoughts-bcf6445d92f1a57dff0b97bd9309f40b70088448.zip
Added started/finished on dates to Game
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|