2021-01-20 13:46:11 +01:00
|
|
|
class CreateActions < ActiveRecord::Migration[6.1]
|
|
|
|
def change
|
|
|
|
create_table :actions do |t|
|
2021-01-22 14:50:56 +01:00
|
|
|
t.references :rule_set, null: false, foreign_key: true
|
2021-01-26 13:27:41 +01:00
|
|
|
t.string :name, null: false
|
|
|
|
t.boolean :enabled, default: true, null: false
|
|
|
|
t.string :class_name, null: false
|
2021-01-26 16:00:49 +01:00
|
|
|
t.string :argument
|
2021-01-20 13:46:11 +01:00
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|