Sha256: cc2b45318f4dc351208f646b1628f3bfb5c9785d6d6f3c2b6fb64b803c6d879a
Contents?: true
Size: 655 Bytes
Versions: 64
Compression:
Stored size: 655 Bytes
Contents
class CreateProxyDepositRequests < ActiveRecord::Migration<%= migration_version %> def change create_table :proxy_deposit_requests do |t| t.string :generic_file_id, null: false t.references :sending_user, null: false t.references :receiving_user, null: false t.datetime :fulfillment_date t.string :status, null: false, default: 'pending' t.text :sender_comment t.text :receiver_comment t.timestamps null: false end <% if migration_version.to_s < '5.1' %> add_index :proxy_deposit_requests, :receiving_user_id add_index :proxy_deposit_requests, :sending_user_id <% end %> end end
Version data entries
64 entries across 64 versions & 1 rubygems