1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/db/migrate/20220808161314_create_orders.rb

15 lines
313 B
Ruby
Raw Normal View History

2022-08-19 19:59:13 +02:00
class CreateOrders < ActiveRecord::Migration[5.2]
def change
create_table :orders do |t|
t.belongs_to :statistic_profile, foreign_key: true
t.integer :operator_id
t.string :token
t.string :reference
t.string :state
t.integer :amount
t.timestamps
end
end
end