Sha256: d3c647672681c3c3db9233e6c8ce1df37998c6e407696529a216082875b6ee50

Contents?: true

Size: 404 Bytes

Versions: 94

Compression:

Stored size: 404 Bytes

Contents

class CreateMartyUserRoles < ActiveRecord::Migration[4.2]
  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

94 entries across 94 versions & 1 rubygems

Version Path
marty-14.3.0 db/migrate/005_create_marty_user_roles.rb
marty-14.0.0 db/migrate/005_create_marty_user_roles.rb
marty-13.0.2 db/migrate/005_create_marty_user_roles.rb
marty-11.0.0 db/migrate/005_create_marty_user_roles.rb
marty-10.0.3 db/migrate/005_create_marty_user_roles.rb
marty-10.0.2 db/migrate/005_create_marty_user_roles.rb
marty-10.0.0 db/migrate/005_create_marty_user_roles.rb
marty-9.5.1 db/migrate/005_create_marty_user_roles.rb
marty-9.5.0 db/migrate/005_create_marty_user_roles.rb
marty-9.3.3 db/migrate/005_create_marty_user_roles.rb
marty-9.3.2 db/migrate/005_create_marty_user_roles.rb
marty-9.3.0 db/migrate/005_create_marty_user_roles.rb
marty-8.5.0 db/migrate/005_create_marty_user_roles.rb
marty-8.4.1 db/migrate/005_create_marty_user_roles.rb
marty-8.3.1 db/migrate/005_create_marty_user_roles.rb
marty-8.2.0 db/migrate/005_create_marty_user_roles.rb
marty-8.0.0 db/migrate/005_create_marty_user_roles.rb
marty-6.1.0 db/migrate/005_create_marty_user_roles.rb
marty-5.2.0 db/migrate/005_create_marty_user_roles.rb
marty-5.1.4 db/migrate/005_create_marty_user_roles.rb