Column 'visits' added to packages

Preparation for processing web server access logs to count visits of
packages.
This commit is contained in:
Christoph Haas 2016-08-10 08:45:25 +02:00
parent 0ffcf5ca19
commit 5df0a96b1d
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddVisitsToPackages < ActiveRecord::Migration
def change
add_column :packages, :visits, :integer
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160715180453) do
ActiveRecord::Schema.define(version: 20160810063320) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -38,6 +38,7 @@ ActiveRecord::Schema.define(version: 20160715180453) do
t.string "origin", limit: 80
t.datetime "created_at"
t.datetime "updated_at"
t.integer "visits"
end
add_index "packages", ["name"], name: "packages_name_key", unique: true, using: :btree