Sha256: b102744ca89dd1ee108b728d19cdc4ffb85400b12ae22ac8326e4586453062c5

Contents?: true

Size: 242 Bytes

Versions: 292

Compression:

Stored size: 242 Bytes

Contents

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

      t.timestamps
    end
  end

  def self.down
    drop_table :friendships
  end
end

Version data entries

292 entries across 171 versions & 30 rubygems

Version Path
hashrocket-clearance-0.4.2 test/rails_root/vendor/gems/thoughtbot-shoulda-2.0.4/test/rails_root/db/migrate/010_create_friendships.rb
hashrocket-clearance-0.4.3 test/rails_root/vendor/gems/thoughtbot-shoulda-2.0.4/test/rails_root/db/migrate/010_create_friendships.rb
iGEL-shoulda-2.10.2 test/rails_root/db/migrate/010_create_friendships.rb
mattknox-goaloc-0.3.0 lib/goaloc/generators/resources/shoulda/test/rails_root/db/migrate/010_create_friendships.rb
mattknox-goaloc-0.4.0 lib/goaloc/generators/resources/shoulda/test/rails_root/db/migrate/010_create_friendships.rb
mjankowski-shoulda-2.0.4 test/rails_root/db/migrate/010_create_friendships.rb
mjankowski-shoulda-2.0.5 test/rails_root/db/migrate/010_create_friendships.rb
ratnikov-shoulda-2.0.6.1 test/rails_root/db/migrate/010_create_friendships.rb
ratnikov-shoulda-2.0.6.2 test/rails_root/db/migrate/010_create_friendships.rb
ratnikov-shoulda-2.0.6.3 test/rails_root/db/migrate/010_create_friendships.rb
ratnikov-shoulda-2.9.0.1 test/rails_root/db/migrate/010_create_friendships.rb
ratnikov-shoulda-2.9.0.2 test/rails_root/db/migrate/010_create_friendships.rb
ratnikov-shoulda-2.9.0.3 test/rails_root/db/migrate/010_create_friendships.rb
ratnikov-shoulda-2.9.0 test/rails_root/db/migrate/010_create_friendships.rb
rmm5t-shoulda-2.0.2 test/rails_root/db/migrate/010_create_friendships.rb
rmm5t-shoulda-2.0.5 test/rails_root/db/migrate/010_create_friendships.rb
rmm5t-shoulda-2.0.6 test/rails_root/db/migrate/010_create_friendships.rb
rmm5t-shoulda-2.9.1 test/rails_root/db/migrate/010_create_friendships.rb
technicalpickles-shoulda-2.0.0 test/rails_root/db/migrate/010_create_friendships.rb
technicalpickles-shoulda-2.0.1 test/rails_root/db/migrate/010_create_friendships.rb