Class: CreateTrophies

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

Instance Method Summary collapse

Instance Method Details

#changeObject


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

def change
  create_table :trophies do |t|
    t.integer :user_id
    t.string :generic_file_id

    t.timestamps
  end
end