2018-08-02 00:09:29 +02:00
|
|
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
|
|
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
|
|
|
|
2018-05-31 20:49:06 +02:00
|
|
|
class CreateNotifications < ActiveRecord::Migration[5.2]
|
|
|
|
def change
|
|
|
|
create_table :notifications do |t|
|
|
|
|
t.references :check, foreign_key: true
|
2018-06-04 20:39:00 +02:00
|
|
|
t.integer :channel, null: false, default: 0
|
2018-05-31 20:49:06 +02:00
|
|
|
t.string :recipient, null: false
|
|
|
|
t.integer :delay, null: false
|
|
|
|
t.integer :status, null: false, default: 0
|
|
|
|
t.datetime :sent_at
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|