18 lines
392 B
Ruby
18 lines
392 B
Ruby
class CreateRules < ActiveRecord::Migration[8.1]
|
|
def change
|
|
create_table :rules do |t|
|
|
t.references :rule_set, null: false, foreign_key: true
|
|
t.string :rule_type
|
|
t.string :target
|
|
t.string :action
|
|
t.boolean :enabled
|
|
t.datetime :expires_at
|
|
t.integer :priority
|
|
t.json :conditions
|
|
t.json :metadata
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|