Browse Source

Add local authorities table

pull/1395/head
Kat 3 years ago
parent
commit
a416ed9208
  1. 13
      db/migrate/20230308101826_create_local_authorities.rb
  2. 12
      db/schema.rb

13
db/migrate/20230308101826_create_local_authorities.rb

@ -0,0 +1,13 @@
class CreateLocalAuthorities < ActiveRecord::Migration[7.0]
def change
create_table :local_authorities do |t|
t.string :code
t.string :la_name
t.datetime :start_date
t.datetime :end_date
t.boolean :previous_location_only, default: false
t.timestamps
end
end
end

12
db/schema.rb

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_03_01_144555) do
ActiveRecord::Schema[7.0].define(version: 2023_03_08_101826) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -289,6 +289,16 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_01_144555) do
t.index ["updated_by_id"], name: "index_lettings_logs_on_updated_by_id"
end
create_table "local_authorities", force: :cascade do |t|
t.string "code"
t.string "la_name"
t.datetime "start_date"
t.datetime "end_date"
t.boolean "previous_location_only", default: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "location_deactivation_periods", force: :cascade do |t|
t.datetime "deactivation_date"
t.datetime "reactivation_date"

Loading…
Cancel
Save