Improved error handling.
This commit is contained in:
parent
a009cb0935
commit
92fdbe8878
1 changed files with 6 additions and 4 deletions
|
@ -5,10 +5,12 @@ class UpdateChannel < ActiveRecord::Migration
|
||||||
EmailAddress.reset_column_information
|
EmailAddress.reset_column_information
|
||||||
|
|
||||||
channel_inbound = Channel.find_by(area: 'Email::Inbound')
|
channel_inbound = Channel.find_by(area: 'Email::Inbound')
|
||||||
EmailAddress.all.each {|email_address|
|
if channel_inbound
|
||||||
email_address.channel_id = channel_inbound.id
|
EmailAddress.all.each {|email_address|
|
||||||
email_address.save
|
email_address.channel_id = channel_inbound.id
|
||||||
}
|
email_address.save
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
add_column :channels, :last_log_in, :text, limit: 500.kilobytes + 1, null: true
|
add_column :channels, :last_log_in, :text, limit: 500.kilobytes + 1, null: true
|
||||||
add_column :channels, :last_log_out, :text, limit: 500.kilobytes + 1, null: true
|
add_column :channels, :last_log_out, :text, limit: 500.kilobytes + 1, null: true
|
||||||
|
|
Loading…
Reference in a new issue