Class: Tables::ActionLogs

Inherits:
Base
  • Object
show all
Defined in:
lib/forcast/migrations/rule_engine/action_logs.rb

Class Method Summary collapse

Class Method Details

.table(migration) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/forcast/migrations/rule_engine/action_logs.rb', line 5

def self.table(migration)
  create_table migration do |t|
    t.string   :action_type
    t.text     :action_params
    t.text     :action_result
    t.bigint   :action_id
    t.index    :action_id, name: 'index_action_action_log_id'
    t.timestamps
  end
end