Browse Source

add price fields to the sales logs table

pull/1121/head
Kat 3 years ago
parent
commit
54483fc393
  1. 10
      db/migrate/20221222133600_add_price_fields.rb
  2. 4
      db/schema.rb

10
db/migrate/20221222133600_add_price_fields.rb

@ -0,0 +1,10 @@
class AddPriceFields < ActiveRecord::Migration[7.0]
def change
change_table :sales_logs, bulk: true do |t|
t.column :value, :decimal, precision: 10, scale: 2
t.column :equity, :decimal, precision: 10, scale: 2
t.column :discount, :decimal, precision: 10, scale: 2
t.column :grant, :decimal, precision: 10, scale: 2
end
end
end

4
db/schema.rb

@ -429,6 +429,10 @@ ActiveRecord::Schema[7.0].define(version: 2022_12_22_133600) do
t.decimal "cashdis", precision: 10, scale: 2
t.integer "lanomagr"
t.integer "soctenant"
t.decimal "value", precision: 10, scale: 2
t.decimal "equity", precision: 10, scale: 2
t.decimal "discount", precision: 10, scale: 2
t.decimal "grant", precision: 10, scale: 2
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