cirandas.net

ref: master

db/migrate/006_create_users.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table "users", :force => true do |t|
      t.column :login,                     :string
      t.column :email,                     :string
      t.column :crypted_password,          :string, :limit => 40
      t.column :salt,                      :string, :limit => 40
      t.column :created_at,                :datetime
      t.column :updated_at,                :datetime
      t.column :remember_token,            :string
      t.column :remember_token_expires_at, :datetime

      t.column :terms_of_use,              :text
      t.column :terms_accepted,            :string, :limit => 1

      t.column :environment_id,            :integer
    end
  end

  def self.down
    drop_table "users"
  end
end