2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/generators/orchestrated/templates/migration.rb', line 2
def self.up
create_table :orchestrations do |table|
table.string :state
table.text :handler
table.references :prerequisite
table.references :delayed_job, :polymorphic => true
table.timestamps
end
create_table :completion_expressions do |table|
table.string :type
table.references :orchestration
end
create_table :orchestration_dependencies do |table|
table.string :state
table.references :dependent
table.references :prerequisite
end
end
|