From bcf6445d92f1a57dff0b97bd9309f40b70088448 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 13 Mar 2019 10:18:45 -0400 Subject: Added started/finished on dates to Game --- db/migrate/20190313123149_add_start_and_end_dates_to_game.rb | 8 ++++++++ db/schema.rb | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20190313123149_add_start_and_end_dates_to_game.rb (limited to 'db') 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 @@ +class AddStartAndEndDatesToGame < ActiveRecord::Migration[5.2] + def change + change_table :games do |c| + c.date :started_on + c.date :finished_on + end + end +end 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 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2019_03_12_193154) do +ActiveRecord::Schema.define(version: 2019_03_13_123149) do create_table "audits", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| t.integer "auditable_id" @@ -65,6 +65,8 @@ ActiveRecord::Schema.define(version: 2019_03_12_193154) do t.integer "score" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.date "started_on" + t.date "finished_on" end create_table "links", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| -- cgit 1.4.1