Column 'visits' added to packages
Preparation for processing web server access logs to count visits of packages.
This commit is contained in:
parent
0ffcf5ca19
commit
5df0a96b1d
2 changed files with 7 additions and 1 deletions
5
db/migrate/20160810063320_add_visits_to_packages.rb
Normal file
5
db/migrate/20160810063320_add_visits_to_packages.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
class AddVisitsToPackages < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :packages, :visits, :integer
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
|
@ -38,6 +38,7 @@ ActiveRecord::Schema.define(version: 20160715180453) do
|
||||||
t.string "origin", limit: 80
|
t.string "origin", limit: 80
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
|
t.integer "visits"
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "packages", ["name"], name: "packages_name_key", unique: true, using: :btree
|
add_index "packages", ["name"], name: "packages_name_key", unique: true, using: :btree
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue