Sha256: 446872f1342fb95e523b368c4c3d3dd8b69d297897185b3d16e6c1a312476edd

Contents?: true

Size: 399 Bytes

Versions: 96

Compression:

Stored size: 399 Bytes

Contents

class CreateMartyUserRoles < ActiveRecord::Migration
  include Marty::Migrations

  def change
    create_table :marty_user_roles do |t|
      t.references :user, null: false
      t.references :role, null: false
    end

    add_fk :marty_user_roles, :marty_users, column: :user_id
    add_fk :marty_user_roles, :marty_roles, column: :role_id
    add_index(:marty_user_roles, [:user_id])
  end
end

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
marty-1.0.53 db/migrate/005_create_marty_user_roles.rb
marty-1.0.52 db/migrate/005_create_marty_user_roles.rb
marty-1.0.51 db/migrate/005_create_marty_user_roles.rb
marty-1.0.50 db/migrate/005_create_marty_user_roles.rb
marty-1.0.48 db/migrate/005_create_marty_user_roles.rb
marty-1.0.47 db/migrate/005_create_marty_user_roles.rb
marty-1.0.46 db/migrate/005_create_marty_user_roles.rb
marty-1.0.44 db/migrate/005_create_marty_user_roles.rb
marty-1.0.43 db/migrate/005_create_marty_user_roles.rb
marty-1.0.42 db/migrate/005_create_marty_user_roles.rb
marty-1.0.41 db/migrate/005_create_marty_user_roles.rb
marty-1.0.39 db/migrate/005_create_marty_user_roles.rb
marty-1.0.38 db/migrate/005_create_marty_user_roles.rb
marty-1.0.37 db/migrate/005_create_marty_user_roles.rb
marty-1.0.36 db/migrate/005_create_marty_user_roles.rb
marty-1.0.35 db/migrate/005_create_marty_user_roles.rb
marty-1.0.34 db/migrate/005_create_marty_user_roles.rb
marty-1.0.33 db/migrate/005_create_marty_user_roles.rb
marty-1.0.32 db/migrate/005_create_marty_user_roles.rb
marty-1.0.31 db/migrate/005_create_marty_user_roles.rb