Sha256: 5e5a9eba05fa5c1ce51fc4af66322c8267938a2b1196914983bf78812f80114b

Contents?: true

Size: 469 Bytes

Versions: 10

Compression:

Stored size: 469 Bytes

Contents

class AddDeniedFriendshipStatus < ActiveRecord::Migration
  def self.up
    FriendshipStatus.enumeration_model_updates_permitted = true    
    FriendshipStatus.create :name => "denied"
    FriendshipStatus.enumeration_model_updates_permitted = false
  end

  def self.down
    FriendshipStatus.enumeration_model_updates_permitted = true    
    FriendshipStatus.find_by_name('denied').destroy
    FriendshipStatus.enumeration_model_updates_permitted = false
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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