mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 14:06:21 +02:00
6 lines
229 B
Ruby
6 lines
229 B
Ruby
class ImproveContactRegistrarId < ActiveRecord::Migration[6.0]
|
|
def change
|
|
add_foreign_key :contacts, :registrars, name: 'contacts_registrar_id_fk'
|
|
change_column :contacts, :registrar_id, :integer, null: false
|
|
end
|
|
end
|