Sha256: 9dfcde6ac681b053c62885e804fbc9abd1fcf7fe1e5b6395861e20058e0c3f5b

Contents?: true

Size: 233 Bytes

Versions: 7

Compression:

Stored size: 233 Bytes

Contents

class AddGlobalNotificationSupport < ActiveRecord::Migration

  def change
    change_table :notifications do |t|
      t.boolean :global
      t.datetime :expires
    end
    Notification.update_all ["global = ?", false]
  end

end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
mailboxer-0.11.0 spec/dummy/db/migrate/20130305144212_add_global_notification_support.rb
mailboxer-0.10.3 spec/dummy/db/migrate/20130305144212_add_global_notification_support.rb
curationexperts-mailboxer-0.10.3 spec/dummy/db/migrate/20130305144212_add_global_notification_support.rb
curationexperts-mailboxer-0.10.3.rc1 spec/dummy/db/migrate/20130305144212_add_global_notification_support.rb
mailboxer-0.10.2 spec/dummy/db/migrate/20130305144212_add_global_notification_support.rb
mailboxer-0.10.1 spec/dummy/db/migrate/20130305144212_add_global_notification_support.rb
mailboxer-0.10.0 spec/dummy/db/migrate/20130305144212_add_global_notification_support.rb