coton_app/db/migrate/20181111205350_create_p_degressifs.rb
2018-12-15 14:06:53 +01:00

13 lines
352 B
Ruby

class CreatePDegressifs < ActiveRecord::Migration
def change
create_table :p_degressifs do |t|
t.references :p_product, index: true, foreign_key: true
t.decimal :price, precision: 10, scale: 2
t.decimal :nbr, precision: 10, scale: 2
t.boolean :archived, :default => false
t.timestamps null: false
end
end
end