mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
parent
3162c76bbf
commit
261c3cc157
2 changed files with 17 additions and 1 deletions
6
db/migrate/20170506212014_add_account_registrar_fk.rb
Normal file
6
db/migrate/20170506212014_add_account_registrar_fk.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class AddAccountRegistrarFk < ActiveRecord::Migration
|
||||
def change
|
||||
change_column :accounts, :registrar_id, :integer, null: false
|
||||
add_foreign_key :accounts, :registrars
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue