root/db/migrate/006_create_users.rb

Revision 1, 0.6 kB (checked in by falcon, 17 years ago)

Version one -> initial work from the laptop.

Line 
1class CreateUsers < ActiveRecord::Migration
2  def self.up
3    create_table "users", :force => true do |t|
4      t.column :login,                     :string
5      t.column :email,                     :string
6      t.column :crypted_password,          :string, :limit => 40
7      t.column :salt,                      :string, :limit => 40
8      t.column :role,                      :string
9      t.column :created_at,                :datetime
10      t.column :updated_at,                :datetime
11      t.column :remember_token,            :string
12      t.column :remember_token_expires_at, :datetime
13    end
14  end
15
16  def self.down
17    drop_table "users"
18  end
19end
Note: See TracBrowser for help on using the browser.