Sha256: 81791ffe423133bddef7707afee340e49f05c276a008b560c1165b5970d32bae

Contents?: true

Size: 495 Bytes

Versions: 10

Compression:

Stored size: 495 Bytes

Contents

class AddFriendshipStatuses < ActiveRecord::Migration
  def self.up
    FriendshipStatus.enumeration_model_updates_permitted = true    
    FriendshipStatus.create :name => "pending"
    FriendshipStatus.create :name => "accepted"
    FriendshipStatus.enumeration_model_updates_permitted = false
  end

  def self.down
    FriendshipStatus.enumeration_model_updates_permitted = true    
    FriendshipStatus.destroy_all
    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/008_add_friendship_statuses.rb
community_engine-3.0.0 db/migrate/008_add_friendship_statuses.rb
community_engine-2.3.2 db/migrate/008_add_friendship_statuses.rb
community_engine-2.3.1 db/migrate/008_add_friendship_statuses.rb
community_engine-2.3.0 db/migrate/008_add_friendship_statuses.rb
community_engine-2.1.0 db/migrate/008_add_friendship_statuses.rb
community_engine-2.0.0 db/migrate/008_add_friendship_statuses.rb
community_engine-2.0.0.beta3 db/migrate/008_add_friendship_statuses.rb
community_engine-2.0.0.beta2 db/migrate/008_add_friendship_statuses.rb
community_engine-2.0.0.beta1 db/migrate/008_add_friendship_statuses.rb