diff options
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20171130180144_change_item_id_in_versions_to_bigint.rb | 8 | ||||
| -rw-r--r-- | db/schema.rb | 8 | 
2 files changed, 12 insertions, 4 deletions
diff --git a/db/migrate/20171130180144_change_item_id_in_versions_to_bigint.rb b/db/migrate/20171130180144_change_item_id_in_versions_to_bigint.rb new file mode 100644 index 000000000..b1e6ca0a6 --- /dev/null +++ b/db/migrate/20171130180144_change_item_id_in_versions_to_bigint.rb @@ -0,0 +1,8 @@ +class ChangeItemIdInVersionsToBigint < ActiveRecord::Migration +  def up +    change_column :versions, :item_id, :integer, limit: 8, null: false +  end +  def down +    change_column :versions, :item_id, :integer, null: false +  end +end diff --git a/db/schema.rb b/db/schema.rb index af22672c6..c6c3bef7e 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: 20171130172926) do +ActiveRecord::Schema.define(version: 20171130180144) do    # These are extensions that must be enabled in order to support this database    enable_extension "plpgsql" @@ -950,9 +950,9 @@ ActiveRecord::Schema.define(version: 20171130172926) do    add_index "vehicle_journeys", ["route_id"], name: "index_vehicle_journeys_on_route_id", using: :btree    create_table "versions", id: :bigserial, force: :cascade do |t| -    t.string   "item_type",  null: false -    t.integer  "item_id",    null: false -    t.string   "event",      null: false +    t.string   "item_type",            null: false +    t.integer  "item_id",    limit: 8, null: false +    t.string   "event",                null: false      t.string   "whodunnit"      t.text     "object"      t.datetime "created_at"  | 
