Browse Source

Add postcode fields

pull/1125/head
Kat 4 years ago
parent
commit
23d4554978
  1. 12
      db/migrate/20221223105623_add_postcode_fields.rb
  2. 6
      db/schema.rb

12
db/migrate/20221223105623_add_postcode_fields.rb

@ -0,0 +1,12 @@
class AddPostcodeFields < ActiveRecord::Migration[7.0]
def change
change_table :sales_logs, bulk: true do |t|
t.column :ppostcode_full, :string
t.column :is_previous_la_inferred, :boolean
t.column :ppcodenk, :integer
t.column :ppostc1, :string
t.column :ppostc2, :string
t.column :prevloc, :string
end
end
end

6
db/schema.rb

@ -423,6 +423,12 @@ ActiveRecord::Schema[7.0].define(version: 2022_12_23_151033) do
t.integer "wheel_value_check"
t.integer "hhregres"
t.integer "hhregresstill"
t.string "ppostcode_full"
t.boolean "is_previous_la_inferred"
t.integer "ppcodenk"
t.string "ppostc1"
t.string "ppostc2"
t.string "prevloc"
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"

Loading…
Cancel
Save