🖥

#Rails remove auto generated name fk_rails_... foreign key migration

2020/01/13に公開

it is the wrong way?

class RemoveUniqueIndexFromSomeTable < ActiveRecord::Migration[5.2]
  def change
    remove_foreign_key :some_tables, name: "fk_rails_43240587ab"
  end
end
db:migrate

== 20200112003437 RemoveUniqueIndexFromSomeTable: migrating ===============
-- remove_foreign_key(:some_tables, {:name=>"fk_rails_43240587ab"})
   -> 0.0250s
...

Original by Github issue

https://github.com/YumaInaura/YumaInaura/issues/2938

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ

Twitter

https://twitter.com/YumaInaura

公開日時

2020-01-13

Discussion