Browse Source

Add exdate to sales logs table

pull/1112/head
Kat 4 years ago
parent
commit
8c1480645b
  1. 11
      db/migrate/20221221122233_add_exchange_contracts_to_sales.rb
  2. 7
      db/schema.rb

11
db/migrate/20221221122233_add_exchange_contracts_to_sales.rb

@ -0,0 +1,11 @@
class AddExchangeContractsToSales < ActiveRecord::Migration[7.0]
def change
change_table :sales_logs, bulk: true do |t|
t.column :exdate, :datetime
t.column :exday, :integer
t.column :exmonth, :integer
t.column :exyear, :integer
t.column :resale, :integer
end
end
end

7
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_21_105502) do
ActiveRecord::Schema[7.0].define(version: 2022_12_21_122233) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -420,6 +420,11 @@ ActiveRecord::Schema[7.0].define(version: 2022_12_21_105502) do
t.integer "stairbought"
t.integer "stairowned"
t.decimal "mrent", precision: 10, scale: 2
t.datetime "exdate", precision: nil
t.integer "exday"
t.integer "exmonth"
t.integer "exyear"
t.integer "resale"
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