require_relative 'base' class Tables::RuleLogs < Tables::Base 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.timestamps end end end