Sha256: aea668e2b90d4060e4a500497ca90ba50f3ecd313742256e8ae717a877b85698

Contents?: true

Size: 316 Bytes

Versions: 4

Compression:

Stored size: 316 Bytes

Contents

class ChangeTableNotification < ActiveRecord::Migration

  def change
    rename_table :notifications, :messages
    remove_column :messages, :type
    remove_column :messages, :notified_object_id
    remove_column :messages, :notified_object_type
    remove_column :messages, :notification_code
  end
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
mailboxer-without-notification-0.11.2 db/migrate/20131003144212_change_table_notification.rb
mailboxer-without-notification-0.11.2 spec/dummy/db/migrate/20131003144212_change_table_notification.rb
mailboxer-without-notification-0.11.1 db/migrate/20131003144212_change_table_notification.rb
mailboxer-without-notification-0.11.1 spec/dummy/db/migrate/20131003144212_change_table_notification.rb