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.30 db/migrate/005_create_marty_user_roles.rb
marty-1.0.29 db/migrate/005_create_marty_user_roles.rb
marty-1.0.28 db/migrate/005_create_marty_user_roles.rb
marty-1.0.27 db/migrate/005_create_marty_user_roles.rb
marty-1.0.26 db/migrate/005_create_marty_user_roles.rb
marty-1.0.25 db/migrate/005_create_marty_user_roles.rb
marty-1.0.24 db/migrate/005_create_marty_user_roles.rb
marty-1.0.23 db/migrate/005_create_marty_user_roles.rb
marty-1.0.22 db/migrate/005_create_marty_user_roles.rb
marty-1.0.20 db/migrate/005_create_marty_user_roles.rb
marty-1.0.19 db/migrate/005_create_marty_user_roles.rb
marty-1.0.18 db/migrate/005_create_marty_user_roles.rb
marty-1.0.17 db/migrate/005_create_marty_user_roles.rb
marty-1.0.15 db/migrate/005_create_marty_user_roles.rb
marty-1.0.14 db/migrate/005_create_marty_user_roles.rb
marty-1.0.13 db/migrate/005_create_marty_user_roles.rb
marty-1.0.12 db/migrate/005_create_marty_user_roles.rb
marty-1.0.11 db/migrate/005_create_marty_user_roles.rb
marty-1.0.10 db/migrate/005_create_marty_user_roles.rb
marty-1.0.9 db/migrate/005_create_marty_user_roles.rb