Sha256: 9b8211936e5dd7660dbe23bfd5bce3b9dc88932952a3dda89d6d0e63acb057bb
Contents?: true
Size: 825 Bytes
Versions: 1
Compression:
Stored size: 825 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 # acquisition t.text :referrer t.string :referring_domain t.string :campaign # t.string :social_network # t.string :search_engine # t.string :search_keyword 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ahoy_matey-0.0.1 | lib/generators/ahoy/templates/install.rb |