21
1
Fork 0
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:
Colin Darie 2018-06-04 20:39:00 +02:00
parent 9886e978fe
commit 1915a93848
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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