Sha256: 193031e1eae206e6d90fd301eedee585b5fd8f6e65cd32208f008d5a8dd1b61c

Contents?: true

Size: 289 Bytes

Versions: 4

Compression:

Stored size: 289 Bytes

Contents

class AddNotificationCode < ActiveRecord::Migration
  def self.up
    change_table :notifications do |t|
      t.string :notification_code, :default => nil
    end
  end

  def self.down
    change_table :notifications do |t|
      t.remove :notification_code
    end
  end
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
mailboxer-without-notification-0.11.2 db/migrate/20110912163911_add_notification_code.rb
mailboxer-without-notification-0.11.2 spec/dummy/db/migrate/20120305103202_add_notification_code.rb
mailboxer-without-notification-0.11.1 db/migrate/20110912163911_add_notification_code.rb
mailboxer-without-notification-0.11.1 spec/dummy/db/migrate/20120305103202_add_notification_code.rb