public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Michael Hartl (author)
Wed May 14 13:04:29 -0700 2008
commit  b28d1d612b53e861a0e2d0d7c473041d29f2e350
tree    d843d06c25a5ec0248792c6a5e9176909a0ae8ac
parent  7053655da8b45f44c0afd3cbeffd4a4638d0ae45
insoshi / db / migrate / 011_create_page_view.rb
100644 18 lines (16 sloc) 0.412 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class CreatePageView < ActiveRecord::Migration
  def self.up
    create_table :page_views do |t|
      t.integer :user_id
      t.string :request_url, :limit => 200
      t.string :session, :limit => 32
      t.string :ip_address, :limit => 16
      t.string :referer, :limit => 200
      t.string :user_agent, :limit => 200
 
      t.timestamps
    end
  end
 
  def self.down
    drop_table :page_views
  end
end