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.
14 lines
364 B
14 lines
364 B
2 years ago
|
class CreateLocalAuthorities < ActiveRecord::Migration[7.0]
|
||
|
def change
|
||
|
create_table :local_authorities do |t|
|
||
|
t.string :code, null: false
|
||
|
t.string :name, null: false
|
||
|
t.datetime :start_date, null: false
|
||
|
t.datetime :end_date
|
||
|
t.index %w[code], name: "index_local_authority_code", unique: true
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|