Class: CreateSingleUseLinks

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/sufia/templates/migrations/create_single_use_links.rb

Instance Method Summary collapse

Instance Method Details

#changeObject


2
3
4
5
6
7
8
9
10
11
# File 'lib/generators/sufia/templates/migrations/create_single_use_links.rb', line 2

def change
  create_table :single_use_links do |t|
    t.string :downloadKey
    t.string :path
    t.string :itemId
    t.datetime :expires

    t.timestamps
  end
end