Nenhuma Descrição http://j1x-huginn.herokuapp.com

20140603104211_rename_digest_email_to_email_digest.rb 726B

    class RenameDigestEmailToEmailDigest < ActiveRecord::Migration def up sql = <<-SQL UPDATE #{ActiveRecord::Base.connection.quote_table_name('agents')} SET #{ActiveRecord::Base.connection.quote_column_name('type')} = 'Agents::EmailDigestAgent' WHERE #{ActiveRecord::Base.connection.quote_column_name('type')} = 'Agents::DigestEmailAgent' SQL execute sql end def down sql = <<-SQL UPDATE #{ActiveRecord::Base.connection.quote_table_name('agents')} SET #{ActiveRecord::Base.connection.quote_column_name('type')} = 'Agents::DigestEmailAgent' WHERE #{ActiveRecord::Base.connection.quote_column_name('type')} = 'Agents::EmailDigestAgent' SQL execute sql end end