Sha256: 2dc5b0b5f720d6f4b0d4c6f8a5d0f3e212dff40799201d5d4aa9d2c452b79520
Contents?: true
Size: 730 Bytes
Versions: 2
Compression:
Stored size: 730 Bytes
Contents
class <%= migration_class_name %> < ActiveRecord::Migration def change create_table :ahoy_visits do |t| t.string :visit_token t.string :visitor_token t.integer :user_id t.string :user_type t.string :ip t.text :user_agent # traffic source t.text :referrer t.string :referring_domain t.string :campaign t.text :landing_page # technology t.string :browser t.string :os t.string :device_type # location t.string :country t.string :region t.string :city t.timestamp :created_at end add_index :ahoy_visits, [:visit_token], unique: true add_index :ahoy_visits, [:user_id, :user_type] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ahoy_matey-0.0.3 | lib/generators/ahoy/templates/install.rb |
ahoy_matey-0.0.2 | lib/generators/ahoy/templates/install.rb |