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