mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-26 19:12:53 +02:00
16 lines
476 B
Ruby
16 lines
476 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 CreateCheckNotifications < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
create_table :check_notifications do |t|
|
||
|
t.references :check, foreign_key: true
|
||
|
t.references :notification, foreign_key: true
|
||
|
t.integer :status, null: false, default: 0, limit: 1
|
||
|
t.datetime :sent_at
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|