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.
12 lines
427 B
12 lines
427 B
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
|
|
|