5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/forcast/migrations/rule_engine/webhooks.rb', line 5
def self.table(migration)
create_table migration do |t|
t.string :webhook_model
t.integer :webhook_model_id
t.integer :send_time
t.integer :duration_time
t.boolean :active?
t.boolean :forever_true?
t.datetime :last_execution
t.datetime :last_review_send
t.datetime :last_send
t.boolean :execute?
t.boolean :send?
t.boolean :class_webhook?
t.bigint :rule_id
t.index :rule_id, name: 'index_rule_webhook_id'
t.timestamps
end
end
|