Make event_type column as smallint and move it to the end of the table

parent ca40ebf1
......@@ -4,8 +4,8 @@ class CreateGeoPushEvents < ActiveRecord::Migration
def change
create_table :geo_push_events do |t|
t.references :project, index: true, foreign_key: { on_delete: :cascade }, null: false
t.integer :event_type, index: true, null: false
t.datetime :created_at, null: false
t.integer :event_type, limit: 2, index: true, null: false
end
end
end
......@@ -530,8 +530,8 @@ ActiveRecord::Schema.define(version: 20170602003304) do
create_table "geo_push_events", force: :cascade do |t|
t.integer "project_id", null: false
t.integer "event_type", null: false
t.datetime "created_at", null: false
t.integer "event_type", limit: 2, null: false
end
add_index "geo_push_events", ["event_type"], name: "index_geo_push_events_on_event_type", using: :btree
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment