Browse Source

Add ecstat3 column to the sales log

CLDC-1530-working-situation
Kat 2 years ago
parent
commit
b98800029a
  1. 7
      db/migrate/20221214110208_add_ecstat3_to_sales.rb
  2. 3
      db/schema.rb
  3. 1
      spec/factories/sales_log.rb

7
db/migrate/20221214110208_add_ecstat3_to_sales.rb

@ -0,0 +1,7 @@
class AddEcstat3ToSales < ActiveRecord::Migration[7.0]
def change
change_table :sales_logs, bulk: true do |t|
t.column :ecstat3, :integer
end
end
end

3
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: 2022_12_13_085819) do
ActiveRecord::Schema[7.0].define(version: 2022_12_14_110208) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -411,6 +411,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_12_13_085819) do
t.integer "mortgage"
t.integer "inc2mort"
t.integer "mortgage_value_check"
t.integer "ecstat3"
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"

1
spec/factories/sales_log.rb

@ -63,6 +63,7 @@ FactoryBot.define do
prevown { 1 }
sex3 { "X" }
mortgage { 20_000 }
ecstat3 { 10 }
end
end
end

Loading…
Cancel
Save