Use 8 bytes for primary key values

parent 7354e4ab
...@@ -2,7 +2,7 @@ class CreateGeoPushEvents < ActiveRecord::Migration ...@@ -2,7 +2,7 @@ class CreateGeoPushEvents < ActiveRecord::Migration
DOWNTIME = false DOWNTIME = false
def change def change
create_table :geo_push_events do |t| create_table :geo_push_events, id: :bigserial do |t|
t.references :project, index: true, foreign_key: { on_delete: :cascade }, null: false t.references :project, index: true, foreign_key: { on_delete: :cascade }, null: false
t.datetime :created_at, null: false t.datetime :created_at, null: false
t.string :ref t.string :ref
......
...@@ -2,7 +2,7 @@ class CreateGeoEventLog < ActiveRecord::Migration ...@@ -2,7 +2,7 @@ class CreateGeoEventLog < ActiveRecord::Migration
DOWNTIME = false DOWNTIME = false
def change def change
create_table :geo_event_log do |t| create_table :geo_event_log, id: :bigserial do |t|
t.datetime :created_at, index: true, null: false t.datetime :created_at, index: true, null: false
t.integer :push_event_id, index: true t.integer :push_event_id, index: true
......
...@@ -500,7 +500,7 @@ ActiveRecord::Schema.define(version: 20170602003304) do ...@@ -500,7 +500,7 @@ ActiveRecord::Schema.define(version: 20170602003304) do
add_index "forked_project_links", ["forked_to_project_id"], name: "index_forked_project_links_on_forked_to_project_id", unique: true, using: :btree add_index "forked_project_links", ["forked_to_project_id"], name: "index_forked_project_links_on_forked_to_project_id", unique: true, using: :btree
create_table "geo_event_log", force: :cascade do |t| create_table "geo_event_log", id: :bigserial, force: :cascade do |t|
t.datetime "created_at", null: false t.datetime "created_at", null: false
t.integer "push_event_id" t.integer "push_event_id"
end end
...@@ -528,7 +528,7 @@ ActiveRecord::Schema.define(version: 20170602003304) do ...@@ -528,7 +528,7 @@ ActiveRecord::Schema.define(version: 20170602003304) do
add_index "geo_nodes", ["host"], name: "index_geo_nodes_on_host", using: :btree add_index "geo_nodes", ["host"], name: "index_geo_nodes_on_host", using: :btree
add_index "geo_nodes", ["primary"], name: "index_geo_nodes_on_primary", using: :btree add_index "geo_nodes", ["primary"], name: "index_geo_nodes_on_primary", using: :btree
create_table "geo_push_events", force: :cascade do |t| create_table "geo_push_events", id: :bigserial, force: :cascade do |t|
t.integer "project_id", null: false t.integer "project_id", null: false
t.datetime "created_at", null: false t.datetime "created_at", null: false
t.string "ref" t.string "ref"
......
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