Sha256: bddc1c501c4621c167512e719e6d1d0f287218f6af3a2563225430f927fe6a64

Contents?: true

Size: 624 Bytes

Versions: 1

Compression:

Stored size: 624 Bytes

Contents

class CreateTrackableSessions < ActiveRecord::Migration
  def self.up
    create_table :trackable_sessions do |t|
      t.string :kind
      t.string :ip_address
      t.string :site
      t.string :referrer
      t.string :session_id
      t.boolean :new_visit
      t.timestamps
    end
    add_index :trackable_sessions, :kind
    add_index :trackable_sessions, :ip_address
    add_index :trackable_sessions, :referrer
    add_index :trackable_sessions, :site
    add_index :trackable_sessions, :session_id
    add_index :trackable_sessions, :new_visit
  end

  def self.down
    drop_table :trackable_sessions
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mitamirri-0.13.8 db/migrate/20100810173533_create_trackable_sessions.rb