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

Unified 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, 5 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 side by-side-diff with in-line comments
Download patch
Index: db/migrate/001_create_users.rb
===================================================================
--- db/migrate/001_create_users.rb (revision 0)
+++ db/migrate/001_create_users.rb (revision 0)
@@ -0,0 +1,26 @@
+class CreateUsers < ActiveRecord::Migration
+ def self.up
+ create_table :users do |t|
+ t.string :login
+ t.string :password
+ t.string :firstname
+ t.string :lastname
+ t.string :phone
+ t.string :email
+ t.string :street
+ t.string :city
+ t.string :province
+ t.string :postal
+ t.string :country
+ t.string :portrait
+ t.boolean :admin
+ t.date :birthday
+ t.datetime :visited_at
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :users
+ end
+end

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