Improved migration.

This commit is contained in:
Martin Edenhofer 2015-08-31 00:55:44 +02:00
parent 2394a89e46
commit 31ab7a195f

View file

@ -39,7 +39,7 @@ class UpdateChannel < ActiveRecord::Migration
channel.area = 'Email::Notification'
options = {
outbound: {
adapter: channel.adapter,
adapter: channel.adapter.downcase,
options: channel.options,
},
}
@ -47,7 +47,7 @@ class UpdateChannel < ActiveRecord::Migration
channel.save
elsif channel.area == 'Twitter::Inbound'
channel.area = 'Twitter::Account'
channel.options[:adapter] = channel.adapter
channel.options[:adapter] = channel.adapter.downcase
channel.save
end
}