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