This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/db/migrate/20210923165046_create_sorecop_taxes.rb
2021-09-23 19:55:56 +02:00

15 lines
419 B
Ruby

class CreateSorecopTaxes < ActiveRecord::Migration[6.0]
def change
create_table :sorecop_taxes do |t|
t.decimal :critere_min, precision: 10, scale: 2
t.decimal :critere_max, precision: 10, scale: 2
t.string :title
t.boolean :fixed_price, default: true
t.decimal :price, precision: 10, scale: 2
t.references :sorecop_cat, foreign_key: true
t.timestamps
end
end
end