Sha256: a3289bfd1c7ee350f5dbbd21264f56bb6c2852c74e3d4954bf2c40924a081860

Contents?: true

Size: 465 Bytes

Versions: 10

Compression:

Stored size: 465 Bytes

Contents

class AddNotificationPreferences < ActiveRecord::Migration
  def self.up
    add_column :users, :notify_comments, :boolean, :default => true
    add_column :users, :notify_friend_requests, :boolean, :default => true
    add_column :users, :notify_community_news, :boolean, :default => true
  end

  def self.down
    remove_column :users, :notify_comments
    remove_column :users, :notify_friend_requests
    remove_column :users, :notify_community_news
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
community_engine-3.2.0 db/migrate/024_add_notification_preferences.rb
community_engine-3.0.0 db/migrate/024_add_notification_preferences.rb
community_engine-2.3.2 db/migrate/024_add_notification_preferences.rb
community_engine-2.3.1 db/migrate/024_add_notification_preferences.rb
community_engine-2.3.0 db/migrate/024_add_notification_preferences.rb
community_engine-2.1.0 db/migrate/024_add_notification_preferences.rb
community_engine-2.0.0 db/migrate/024_add_notification_preferences.rb
community_engine-2.0.0.beta3 db/migrate/024_add_notification_preferences.rb
community_engine-2.0.0.beta2 db/migrate/024_add_notification_preferences.rb
community_engine-2.0.0.beta1 db/migrate/024_add_notification_preferences.rb