Commit 124d0cea authored by Shinya Maeda's avatar Shinya Maeda

Change release links table ID to bigserial

parent 42173d37
...@@ -6,7 +6,7 @@ class CreateReleasesLinkTable < ActiveRecord::Migration[5.0] ...@@ -6,7 +6,7 @@ class CreateReleasesLinkTable < ActiveRecord::Migration[5.0]
DOWNTIME = false DOWNTIME = false
def change def change
create_table :release_links do |t| create_table :release_links, id: :bigserial do |t|
t.references :release, null: false, index: false, foreign_key: { on_delete: :cascade } t.references :release, null: false, index: false, foreign_key: { on_delete: :cascade }
t.string :url, null: false t.string :url, null: false
t.string :name, null: false t.string :name, null: false
......
...@@ -1798,7 +1798,7 @@ ActiveRecord::Schema.define(version: 20190103140724) do ...@@ -1798,7 +1798,7 @@ ActiveRecord::Schema.define(version: 20190103140724) do
t.index ["source_type", "source_id"], name: "index_redirect_routes_on_source_type_and_source_id", using: :btree t.index ["source_type", "source_id"], name: "index_redirect_routes_on_source_type_and_source_id", using: :btree
end end
create_table "release_links", force: :cascade do |t| create_table "release_links", id: :bigserial, force: :cascade do |t|
t.integer "release_id", null: false t.integer "release_id", null: false
t.string "url", null: false t.string "url", null: false
t.string "name", null: false t.string "name", null: false
......
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