Submit social housing lettings and sales data (CORE)
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.
 
 
 
 

11 lines
296 B

class CreateLocalAuthorities < ActiveRecord::Migration[7.0]
def change
create_table :local_authorities do |t|
t.string :ons_code, null: false
t.string :name, null: false
t.index %i[ons_code name], unique: true # Only one entry per LA
t.timestamps
end
end
end