Browse Source

Add new nationality columns

pull/2193/head
Kat 2 years ago
parent
commit
81de9569a2
  1. 14
      db/migrate/20240130084707_add_nationality_all.rb
  2. 8
      db/schema.rb

14
db/migrate/20240130084707_add_nationality_all.rb

@ -0,0 +1,14 @@
class AddNationalityAll < ActiveRecord::Migration[7.0]
def change
change_table :lettings_logs, bulk: true do |t|
t.column :nationality_all, :integer
t.column :nationality_all_group, :integer
end
change_table :sales_logs, bulk: true do |t|
t.column :nationality_all, :integer
t.column :nationality_all_group, :integer
t.column :nationality_all_buyer2, :integer
t.column :nationality_all_buyer2_group, :integer
end
end
end

8
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: 2024_01_18_183843) do
ActiveRecord::Schema[7.0].define(version: 2024_01_30_084707) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -303,6 +303,8 @@ ActiveRecord::Schema[7.0].define(version: 2024_01_18_183843) do
t.integer "scharge_value_check"
t.integer "pscharge_value_check"
t.integer "duplicate_set_id"
t.integer "nationality_all"
t.integer "nationality_all_group"
t.index ["bulk_upload_id"], name: "index_lettings_logs_on_bulk_upload_id"
t.index ["created_by_id"], name: "index_lettings_logs_on_created_by_id"
t.index ["location_id"], name: "index_lettings_logs_on_location_id"
@ -652,6 +654,10 @@ ActiveRecord::Schema[7.0].define(version: 2024_01_18_183843) do
t.datetime "values_updated_at"
t.bigint "managing_organisation_id"
t.integer "duplicate_set_id"
t.integer "nationality_all"
t.integer "nationality_all_group"
t.integer "nationality_all_buyer2"
t.integer "nationality_all_buyer2_group"
t.index ["bulk_upload_id"], name: "index_sales_logs_on_bulk_upload_id"
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"

Loading…
Cancel
Save