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 20:08:52 -0700 2008
commit  6a531234e43665e34544bff99bce57c684aca63a
tree    af1ec02e275c1be091423044cfbee436c90a3b57
parent  593cafd209abbfb0bc2dc29960f8319d5deb87f7
insoshi / db / migrate / 016_create_preferences.rb
100644 18 lines (15 sloc) 0.496 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class CreatePreferences < ActiveRecord::Migration
  def self.up
    # drop_table :preferences rescue nil
    create_table :preferences do |t|
      t.string :domain, :null => false, :default => ""
      t.string :smtp_server, :null => false, :default => ""
      t.boolean :email_notifications, :null => false, :default => false
      t.boolean :email_verifications, :null => false, :default => false
      
      t.timestamps
    end
  end
 
  def self.down
    drop_table :preferences
  end
end