21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-04-29 15:30:49 +02:00
chexpire/db/migrate/20180531101412_create_notifications.rb
2018-08-02 00:29:53 +02:00

18 lines
528 B
Ruby

# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
# License: GNU AGPL-3+ (see full text in LICENSE file)
class CreateNotifications < ActiveRecord::Migration[5.2]
def change
create_table :notifications do |t|
t.references :check, foreign_key: true
t.integer :channel, null: false, default: 0
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