Sha256: f4e11b225a94fd5dd9e3cd99f9208d425820960dc5279f8d1fa2cadf6c6744f8

Contents?: true

Size: 255 Bytes

Versions: 6

Compression:

Stored size: 255 Bytes

Contents

class CreateFileViewStats < ActiveRecord::Migration
  def change
    create_table :file_view_stats do |t|
      t.datetime :date
      t.integer :views
      t.string :file_id

      t.timestamps
    end
    add_index :file_view_stats, :file_id
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sufia-models-6.7.0 lib/generators/sufia/models/templates/migrations/create_file_view_stats.rb
sufia-models-6.6.1 lib/generators/sufia/models/templates/migrations/create_file_view_stats.rb
sufia-models-6.6.0 lib/generators/sufia/models/templates/migrations/create_file_view_stats.rb
sufia-models-6.5.0 lib/generators/sufia/models/templates/migrations/create_file_view_stats.rb
sufia-models-6.4.0 lib/generators/sufia/models/templates/migrations/create_file_view_stats.rb
sufia-models-6.3.0 lib/generators/sufia/models/templates/migrations/create_file_view_stats.rb