class CreateFileDownloadStats

Public Instance Methods

change() click to toggle source
# File lib/generators/sufia/models/templates/migrations/create_file_download_stats.rb, line 2
def change
  create_table :file_download_stats do |t|
    t.datetime :date
    t.integer :downloads
    t.string :file_id

    t.timestamps
  end
  add_index :file_download_stats, :file_id
end