Skip to content

Instantly share code, notes, and snippets.

@mjgiarlo
Last active February 28, 2018 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjgiarlo/e0bd5484949ccd4ef7694470fa067a58 to your computer and use it in GitHub Desktop.
Save mjgiarlo/e0bd5484949ccd4ef7694470fa067a58 to your computer and use it in GitHub Desktop.
ActiveRecord::Schema.define(version: 20_171_026_154_256) do
create_table 'resource_stats', id: :serial, force: :cascade do |t|
t.datetime 'date'
t.integer 'hits'
t.string 'hit_type'
t.string 'resource_id'
t.string 'resource_type'
t.datetime 'created_at', null: false
t.datetime 'updated_at', null: false
t.integer 'user_id'
# one or more indexes that make sense
end
end
ActiveRecord::Schema.define(version: 20_171_026_154_256) do
create_table 'file_download_stats', id: :serial, force: :cascade do |t|
t.datetime 'date'
t.integer 'downloads'
t.string 'file_id'
t.datetime 'created_at', null: false
t.datetime 'updated_at', null: false
t.integer 'user_id'
t.index ['file_id'], name: 'index_file_download_stats_on_file_id'
t.index ['user_id'], name: 'index_file_download_stats_on_user_id'
end
create_table 'file_view_stats', id: :serial, force: :cascade do |t|
t.datetime 'date'
t.integer 'views'
t.string 'file_id'
t.datetime 'created_at', null: false
t.datetime 'updated_at', null: false
t.integer 'user_id'
t.index ['file_id'], name: 'index_file_view_stats_on_file_id'
t.index ['user_id'], name: 'index_file_view_stats_on_user_id'
end
create_table 'work_view_stats', id: :serial, force: :cascade do |t|
t.datetime 'date'
t.integer 'work_views'
t.string 'work_id'
t.datetime 'created_at', null: false
t.datetime 'updated_at', null: false
t.integer 'user_id'
t.index ['user_id'], name: 'index_work_view_stats_on_user_id'
t.index ['work_id'], name: 'index_work_view_stats_on_work_id'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment