Browse Source

feat: add buyer 2-1 migration and schema

pull/919/head
natdeanlewissoftwire 3 years ago
parent
commit
ef69a32cc9
  1. 8
      db/migrate/20220929125204_add_buyer2_relationship_to_buyer1_column.rb
  2. 4
      db/schema.rb

8
db/migrate/20220929125204_add_buyer2_relationship_to_buyer1_column.rb

@ -0,0 +1,8 @@
class AddBuyer2RelationshipToBuyer1Column < ActiveRecord::Migration[7.0]
def change
change_table :sales_logs, bulk: true do |t|
t.column :relat2, :string
t.column :otherrelat2, :string
end
end
end

4
db/schema.rb

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2022_09_28_132657) do ActiveRecord::Schema[7.0].define(version: 2022_09_29_125204) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -340,6 +340,8 @@ ActiveRecord::Schema[7.0].define(version: 2022_09_28_132657) do
t.integer "buy1livein" t.integer "buy1livein"
t.integer "buylivein" t.integer "buylivein"
t.integer "proptype" t.integer "proptype"
t.string "relat2"
t.string "otherrelat2"
t.index ["created_by_id"], name: "index_sales_logs_on_created_by_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" 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" t.index ["owning_organisation_id"], name: "index_sales_logs_on_owning_organisation_id"

Loading…
Cancel
Save