|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
# |
|
|
|
|
# It's strongly recommended that you check this file into your version control system. |
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema[7.0].define(version: 2022_10_16_203810) do |
|
|
|
|
ActiveRecord::Schema[7.0].define(version: 2022_10_16_221451) do |
|
|
|
|
# These are extensions that must be enabled in order to support this database |
|
|
|
|
enable_extension "plpgsql" |
|
|
|
|
|
|
|
|
@ -48,10 +48,9 @@ ActiveRecord::Schema[7.0].define(version: 2022_10_16_203810) do
|
|
|
|
|
t.integer "beds" |
|
|
|
|
t.integer "soft_min", null: false |
|
|
|
|
t.integer "soft_max", null: false |
|
|
|
|
t.integer "start_year", null: false |
|
|
|
|
t.datetime "created_at", null: false |
|
|
|
|
t.datetime "updated_at", null: false |
|
|
|
|
t.index ["start_year", "beds", "la"], name: "index_la_sales_ranges_on_start_year_and_beds_and_la", unique: true |
|
|
|
|
t.index ["beds", "la"], name: "index_la_sales_ranges_on_beds_and_la", unique: true |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
create_table "legacy_users", force: :cascade do |t| |
|
|
|
@ -257,6 +256,14 @@ ActiveRecord::Schema[7.0].define(version: 2022_10_16_203810) do
|
|
|
|
|
t.index ["scheme_id"], name: "index_lettings_logs_on_scheme_id" |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
create_table "local_authorities", force: :cascade do |t| |
|
|
|
|
t.string "ons_code", null: false |
|
|
|
|
t.string "name", null: false |
|
|
|
|
t.datetime "created_at", null: false |
|
|
|
|
t.datetime "updated_at", null: false |
|
|
|
|
t.index ["ons_code", "name"], name: "index_local_authorities_on_ons_code_and_name", unique: true |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
create_table "locations", force: :cascade do |t| |
|
|
|
|
t.string "location_code" |
|
|
|
|
t.string "postcode" |
|
|
|
@ -370,6 +377,8 @@ ActiveRecord::Schema[7.0].define(version: 2022_10_16_203810) do
|
|
|
|
|
t.integer "hholdcount" |
|
|
|
|
t.integer "age3" |
|
|
|
|
t.integer "age3_known" |
|
|
|
|
t.string "la" |
|
|
|
|
t.integer "purchase_price" |
|
|
|
|
t.index ["created_by_id"], name: "index_sales_logs_on_created_by_id" |
|
|
|
|
t.index ["managing_organisation_id"], name: "index_sales_logs_on_managing_organisation_id" |
|
|
|
|
t.index ["owning_organisation_id"], name: "index_sales_logs_on_owning_organisation_id" |
|
|
|
|