mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-06 01:24:29 +02:00
15 lines
380 B
Ruby
15 lines
380 B
Ruby
|
class CreateNotifications < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
create_table :notifications do |t|
|
||
|
t.references :check, foreign_key: true
|
||
|
t.integer :channel, null: false
|
||
|
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
|