You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
427 B
13 lines
427 B
2 years ago
|
class AddLocalAuthorityLink < ActiveRecord::Migration[7.0]
|
||
|
def change
|
||
|
create_table :local_authority_links do |t|
|
||
|
t.references :local_authority
|
||
|
t.references :linked_local_authority
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
add_foreign_key :local_authority_links, :local_authorities, column: :local_authority_id
|
||
|
add_foreign_key :local_authority_links, :local_authorities, column: :linked_local_authority_id
|
||
|
end
|
||
|
end
|