Sha256: 315ca260d0daced9c6b9119316df7191695e26eec625ecc3da275910ecc357a9

Contents?: true

Size: 335 Bytes

Versions: 10

Compression:

Stored size: 335 Bytes

Contents

class CreateFriendships < ActiveRecord::Migration
  def self.up
    create_table :friendships do |t|
      t.column :friend_id, :integer
      t.column :user_id, :integer
      t.column "initiator", :boolean, :default => false
      t.column "created_at", :datetime
    end
  end

  def self.down
    drop_table :friendships
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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