lib/generators/ahoy/templates/install.rb in ahoy_matey-0.1.0 vs lib/generators/ahoy/templates/install.rb in ahoy_matey-0.1.1
- old
+ new
@@ -1,10 +1,13 @@
class <%= migration_class_name %> < ActiveRecord::Migration
def change
create_table :visits do |t|
- # cookies
+ # cookies *required*
t.string :visit_token
t.string :visitor_token
+
+ # the rest are recommended but optional
+ # simply remove the columns you don't want
# standard
t.string :ip
t.text :user_agent
t.text :referrer