Added autorun model migrations
This commit is contained in:
17
core/main/ar-migrations/008_create_executions.rb
Normal file
17
core/main/ar-migrations/008_create_executions.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class CreateExecutions < ActiveRecord::Migration[6.0]
|
||||
|
||||
def change
|
||||
|
||||
create_table :executions do |t|
|
||||
t.text :session_id
|
||||
t.integer :mod_count
|
||||
t.integer :mod_successful
|
||||
t.text :mod_body
|
||||
t.text :exec_time
|
||||
t.text :rule_token
|
||||
t.boolean :is_sent
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
20
core/main/ar-migrations/009_create_rules.rb
Normal file
20
core/main/ar-migrations/009_create_rules.rb
Normal file
@@ -0,0 +1,20 @@
|
||||
class CreateRules < ActiveRecord::Migration[6.0]
|
||||
|
||||
def change
|
||||
|
||||
create_table :rules do |t|
|
||||
t.text :name
|
||||
t.text :author
|
||||
t.text :browser
|
||||
t.text :browser_version
|
||||
t.text :os
|
||||
t.text :os_version
|
||||
t.text :modules
|
||||
t.text :execution_order
|
||||
t.text :execution_delay
|
||||
t.text :chain_mode
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user