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