Last active
February 28, 2018 18:00
-
-
Save mjgiarlo/e0bd5484949ccd4ef7694470fa067a58 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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