Initial commit
This commit is contained in:
11
db/migrate/20190529142209_create_triggers.rb
Normal file
11
db/migrate/20190529142209_create_triggers.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateTriggers < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :triggers do |t|
|
||||
t.references :order, null: false, index: true
|
||||
t.integer :order_type, null: false, index: true, limit: 1, unsigned: true
|
||||
t.binary :value, null: false, limit: 128
|
||||
t.integer :state, null: false, default: 0, index: true, limit: 1, unsigned: true
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user