mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
15 lines
313 B
Ruby
15 lines
313 B
Ruby
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
|