Class: CreateFileDownloadStats
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateFileDownloadStats
- Defined in:
- lib/generators/sufia/models/templates/migrations/create_file_download_stats.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# 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. end add_index :file_download_stats, :file_id end |