Sha256: cf4f19dda449aefc029701f08ef625ff2a6dacd50616961b1d24157f5c11bade
Contents?: true
Size: 492 Bytes
Versions: 15
Compression:
Stored size: 492 Bytes
Contents
class CreateUserStats < ActiveRecord::Migration[4.2] def change create_table :user_stats do |t| t.integer :user_id t.datetime :date t.integer :file_views t.integer :file_downloads t.timestamps null: false end add_column :file_view_stats, :user_id, :integer add_column :file_download_stats, :user_id, :integer add_index :user_stats, :user_id add_index :file_view_stats, :user_id add_index :file_download_stats, :user_id end end
Version data entries
15 entries across 15 versions & 1 rubygems