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

Version Path
hyrax-5.0.1 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-5.0.0 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-5.0.0.rc3 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-5.0.0.rc2 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-5.0.0.rc1 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-3.6.0 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-4.0.0 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-4.0.0.rc3 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-4.0.0.rc2 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-4.0.0.rc1 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-3.5.0 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-4.0.0.beta2 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-3.4.2 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-4.0.0.beta1 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-3.4.1 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-3.4.0 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-3.3.0 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-3.2.0 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-2.9.6 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb
hyrax-3.1.0 lib/generators/hyrax/templates/db/migrate/20160328222227_create_proxy_deposit_requests.rb.erb