Sha256: 370469092761631dc102e814b543fe67debcad698c43e5646dd913781b8aad16

Contents?: true

Size: 264 Bytes

Versions: 28

Compression:

Stored size: 264 Bytes

Contents

class CreateFriendships < ActiveRecord::Migration
  def self.up
    create_table :friendships do |t|
      t.integer :user_id
      t.integer :friend_id
      t.string :state

      t.timestamps
    end
  end

  def self.down
    drop_table :friendships
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
puffer-0.1.1 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.1.0 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.32 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.31 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.30 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.29 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.28 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.26 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.25 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.24 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.23 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.22 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.21 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.20 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.19 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.18 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.17 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.16 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.15 spec/dummy/db/migrate/20110107082706_create_friendships.rb
puffer-0.0.14 spec/dummy/db/migrate/20110107082706_create_friendships.rb