diff --git a/db/migrate/20130208135718_allow_custom_xmpp_on_gtalk.rb.rb b/db/migrate/20130208135718_allow_custom_xmpp_on_gtalk.rb.rb new file mode 100644 index 0000000..2d2a36b --- /dev/null +++ b/db/migrate/20130208135718_allow_custom_xmpp_on_gtalk.rb.rb @@ -0,0 +1,17 @@ +class AllowCustomXmppOnGtalk < Mongoid::Migration + def self.up + App.all.each do |app| + if app.notification_service and app.notification_service._type.include?("Gtalk") + user_id = app.notification_service.room_id + app.notification_service.update_attributes(:service => 'talk.google.com', + :service_url => "http://www.google.com/talk/", + :user_id => user_id, + :room_id => nil) + + end + end + end + + def self.down + end +end -- libgit2 0.21.2