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.2.9 db/migrate/005_create_marty_user_roles.rb
marty-1.2.8 db/migrate/005_create_marty_user_roles.rb
marty-1.2.7 db/migrate/005_create_marty_user_roles.rb
marty-1.2.6 db/migrate/005_create_marty_user_roles.rb
marty-1.2.5 db/migrate/005_create_marty_user_roles.rb
marty-1.2.4 db/migrate/005_create_marty_user_roles.rb
marty-1.2.3 db/migrate/005_create_marty_user_roles.rb
marty-1.2.2 db/migrate/005_create_marty_user_roles.rb
marty-1.2.1 db/migrate/005_create_marty_user_roles.rb
marty-1.2.0 db/migrate/005_create_marty_user_roles.rb
marty-1.1.9 db/migrate/005_create_marty_user_roles.rb
marty-1.1.8 db/migrate/005_create_marty_user_roles.rb
marty-1.1.7 db/migrate/005_create_marty_user_roles.rb
marty-1.1.6 db/migrate/005_create_marty_user_roles.rb
marty-1.1.5 db/migrate/005_create_marty_user_roles.rb
marty-1.1.4 db/migrate/005_create_marty_user_roles.rb
marty-1.1.3 db/migrate/005_create_marty_user_roles.rb
marty-1.1.2 db/migrate/005_create_marty_user_roles.rb
marty-1.1.1 db/migrate/005_create_marty_user_roles.rb
marty-1.0.54 db/migrate/005_create_marty_user_roles.rb