Sha256: 782a6f6aa120835d6570948b157523406cd1035548952deaaed1698cb8adb6c5

Contents?: true

Size: 254 Bytes

Versions: 240

Compression:

Stored size: 254 Bytes

Contents

class CreateMemberships < ActiveRecord::Migration[5.0]
  def change
    create_table :memberships do |t|
      t.references :user, foreign_key: true
      t.references :team, foreign_key: true
      t.boolean :admin

      t.timestamps
    end
  end
end

Version data entries

240 entries across 240 versions & 1 rubygems

Version Path
bullet_train-1.0.19 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.18 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.17 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.16 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.15 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.14 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.13 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.12 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.11 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.10 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.9 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.8 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.7 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.6 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.5 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.4 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.3 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.2 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.1 db/migrate/20161117154709_create_memberships.rb
bullet_train-1.0.0 db/migrate/20161117154709_create_memberships.rb