We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

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
insoshi / db / migrate / 001_create_people.rb
100644 22 lines (20 sloc) 0.686 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class CreatePeople < ActiveRecord::Migration
  def self.up
    create_table "people", :force => true do |t|
      t.string :email, :name, :remember_token, :crypted_password
      t.text :description
      t.datetime :remember_token_expires_at,
                 :last_contacted_at,
                 :last_logged_in_at
      t.integer :forum_posts_count, :null => false, :default => 0
      t.integer :blog_post_comments_count, :null => false, :default => 0
      t.integer :wall_comments_count, :null => false, :default => 0
      t.timestamps
    end
    add_index :people, :email
    add_index :people, :remember_token
  end
 
  def self.down
    drop_table "people"
  end
end