mirror of
https://github.com/Evolix/chexpire.git
synced 2024-05-05 10:15:09 +02:00
Notification channel default to email
This commit is contained in:
parent
9886e978fe
commit
1915a93848
|
@ -2,7 +2,7 @@ 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.integer :channel, null: false, default: 0
|
||||
t.string :recipient, null: false
|
||||
t.integer :delay, null: false
|
||||
t.integer :status, null: false, default: 0
|
||||
|
|
|
@ -43,7 +43,7 @@ ActiveRecord::Schema.define(version: 2018_06_02_154319) do
|
|||
|
||||
create_table "notifications", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
||||
t.bigint "check_id"
|
||||
t.integer "channel", null: false
|
||||
t.integer "channel", default: 0, null: false
|
||||
t.string "recipient", null: false
|
||||
t.integer "delay", null: false
|
||||
t.integer "status", default: 0, null: false
|
||||
|
|
Loading…
Reference in a new issue