class CreateProxyDepositRights

Public Instance Methods

change() click to toggle source
# File lib/generators/sufia/models/templates/migrations/create_proxy_deposit_rights.rb, line 2
def change
  create_table :proxy_deposit_rights do |t|
    t.references :grantor
    t.references :grantee
    t.timestamps
  end
  add_index :proxy_deposit_rights, :grantor_id
  add_index :proxy_deposit_rights, :grantee_id
end