diff --git a/db/migrate/20221221081709_add_staircase_fields_to_sales.rb b/db/migrate/20221221081709_add_staircase_fields_to_sales.rb new file mode 100644 index 000000000..0d6dd143e --- /dev/null +++ b/db/migrate/20221221081709_add_staircase_fields_to_sales.rb @@ -0,0 +1,8 @@ +class AddStaircaseFieldsToSales < ActiveRecord::Migration[7.0] + def change + change_table :sales_logs, bulk: true do |t| + t.column :stairbought, :integer + t.column :stairowned, :integer + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 774735d7a..4f81ac646 100644 --- a/db/schema.rb +++ b/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_20_174515) do +ActiveRecord::Schema[7.0].define(version: 2022_12_21_081709) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -417,6 +417,8 @@ ActiveRecord::Schema[7.0].define(version: 2022_12_20_174515) do t.integer "ecstat6" t.integer "frombeds" t.integer "staircase" + t.integer "stairbought" + t.integer "stairowned" 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"