Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Side by Side Diff: db/migrate/001_create_users.rb

Issue 2323: Upgrade to Rails 2 SVN Base: http://familyconnect.rubyforge.org/svn/trunk/
Patch Set: Created 1 year, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 class CreateUsers < ActiveRecord::Migration
2 def self.up
3 create_table :users do |t|
4 t.string :login
5 t.string :password
6 t.string :firstname
7 t.string :lastname
8 t.string :phone
9 t.string :email
10 t.string :street
11 t.string :city
12 t.string :province
13 t.string :postal
14 t.string :country
15 t.string :portrait
16 t.boolean :admin
17 t.date :birthday
18 t.datetime :visited_at
19 t.timestamps
20 end
21 end
22
23 def self.down
24 drop_table :users
25 end
26 end
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r483