13 lines
285 B
Ruby
13 lines
285 B
Ruby
|
class CreateActions < ActiveRecord::Migration[6.1]
|
||
|
def change
|
||
|
create_table :actions do |t|
|
||
|
t.references :ruleset, null: false, foreign_key: true
|
||
|
t.string :name
|
||
|
t.boolean :enabled, default: true
|
||
|
t.string :action_class
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|