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

14 lines
325 B
Ruby

class CreatePartitions < ActiveRecord::Migration[6.0]
def change
create_table :partitions do |t|
t.references :admin, foreign_key: true
t.date :date
t.text :description
t.boolean :stock_ok, :default => false
t.decimal :amount, precision: 15, scale: 2
t.timestamps
end
end
end