From fd9f43d7d9959cde7281e3217cc4bba48b8074c1 Mon Sep 17 00:00:00 2001 From: alan snape Date: Wed, 28 Dec 2016 05:22:43 +0000 Subject: [PATCH] modify mission status from string to int --- ...161228052102_modify_missions_status_from_string_to_int.rb | 5 +++++ db/schema.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20161228052102_modify_missions_status_from_string_to_int.rb diff --git a/db/migrate/20161228052102_modify_missions_status_from_string_to_int.rb b/db/migrate/20161228052102_modify_missions_status_from_string_to_int.rb new file mode 100644 index 0000000..a81993f --- /dev/null +++ b/db/migrate/20161228052102_modify_missions_status_from_string_to_int.rb @@ -0,0 +1,5 @@ +class ModifyMissionsStatusFromStringToInt < ActiveRecord::Migration + def change + change_column :missions, :status, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index ffa45ec..4c8962f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20161228045935) do +ActiveRecord::Schema.define(version: 20161228052102) do create_table "comments", force: :cascade do |t| t.text "content" @@ -26,7 +26,7 @@ ActiveRecord::Schema.define(version: 20161228045935) do t.string "name" t.datetime "deadline" t.integer "priority" - t.string "status" + t.integer "status" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "content"