Class: Tables::RuleLogs
- Inherits:
-
Base
- Object
- Base
- Tables::RuleLogs
- Defined in:
- lib/forcast/migrations/rule_engine/rule_logs.rb
Class Method Summary collapse
Class Method Details
.table(migration) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/forcast/migrations/rule_engine/rule_logs.rb', line 5 def self.table(migration) create_table migration do |t| t.string :name t.string :rule_model t.integer :rule_model_id t.string :attr_comparable t.string :rule t.string :rule_type t.string :rule_class t.string :value t.text :actions t.bigint :rule_id t.index :rule_id, name: 'index_rule_rule_log_id' t. end end |