From 31ab7a195faad3a964e57adf75df03636e6a434c Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 31 Aug 2015 00:55:44 +0200 Subject: [PATCH] Improved migration. --- db/migrate/20150824000002_update_channel.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20150824000002_update_channel.rb b/db/migrate/20150824000002_update_channel.rb index cf2686b07..e29e89a5a 100644 --- a/db/migrate/20150824000002_update_channel.rb +++ b/db/migrate/20150824000002_update_channel.rb @@ -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 }