Improved migration.
This commit is contained in:
parent
2394a89e46
commit
31ab7a195f
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ class UpdateChannel < ActiveRecord::Migration
|
||||||
channel.area = 'Email::Notification'
|
channel.area = 'Email::Notification'
|
||||||
options = {
|
options = {
|
||||||
outbound: {
|
outbound: {
|
||||||
adapter: channel.adapter,
|
adapter: channel.adapter.downcase,
|
||||||
options: channel.options,
|
options: channel.options,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ class UpdateChannel < ActiveRecord::Migration
|
||||||
channel.save
|
channel.save
|
||||||
elsif channel.area == 'Twitter::Inbound'
|
elsif channel.area == 'Twitter::Inbound'
|
||||||
channel.area = 'Twitter::Account'
|
channel.area = 'Twitter::Account'
|
||||||
channel.options[:adapter] = channel.adapter
|
channel.options[:adapter] = channel.adapter.downcase
|
||||||
channel.save
|
channel.save
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue