Use 8 bytes for the push_event_id foreign key on geo_event_log table

parent d61f2a56
......@@ -4,7 +4,7 @@ class CreateGeoEventLog < ActiveRecord::Migration
def change
create_table :geo_event_log, id: :bigserial do |t|
t.datetime :created_at, index: true, null: false
t.integer :push_event_id, index: true
t.integer :push_event_id, limit: 8, index: true
t.foreign_key :geo_push_events, column: :push_event_id, on_delete: :cascade
end
......
......@@ -502,7 +502,7 @@ ActiveRecord::Schema.define(version: 20170602003304) do
create_table "geo_event_log", id: :bigserial, force: :cascade do |t|
t.datetime "created_at", null: false
t.integer "push_event_id"
t.integer "push_event_id", limit: 8
end
add_index "geo_event_log", ["created_at"], name: "index_geo_event_log_on_created_at", 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