Class: Tables::Actions
- Inherits:
-
Base
- Object
- Base
- Tables::Actions
- Defined in:
- lib/forcast/migrations/rule_engine/actions.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/actions.rb', line 5 def self.table(migration) create_table migration do |t| t.string :action_type t.json :action_params t.boolean :active? t.bigint :rule_id t.index :rule_id, name: 'index_rule_action_id' t. end end |