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/20210406125948_create_partition_lines.rb
2021-08-23 10:26:02 +02:00

17 lines
445 B
Ruby

class CreatePartitionLines < ActiveRecord::Migration[6.0]
def change
create_table :partition_lines do |t|
t.integer :p_product_ref_from_id
t.integer :p_product_ref_to_id
t.references :partition, foreign_key: true
t.integer :qte_from
t.integer :qte_to
t.text :description
t.boolean :stock_ok, :default => false
t.decimal :amount, precision: 15, scale: 2
t.timestamps
end
end
end