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
Michael Hartl (author)
Wed Apr 23 19:56:22 -0700 2008
commit  593cafd209abbfb0bc2dc29960f8319d5deb87f7
tree    e84a830cced7a0185b389b13d998727dc0cbddb6
parent  083a98a234000519ac920168d428a17520607a17
insoshi / db / migrate / 002_create_photos.rb
100644 23 lines (21 sloc) 0.473 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class CreatePhotos < ActiveRecord::Migration
  def self.up
    create_table :photos do |t|
      t.integer :person_id
      t.integer :parent_id
      t.string :content_type
      t.string :filename
      t.string :thumbnail
      t.integer :size
      t.integer :width
      t.integer :height
      t.boolean :primary
 
      t.timestamps
    end
    add_index :photos, :person_id
    add_index :photos, :parent_id
  end
 
  def self.down
    drop_table :photos
  end
end