cours0708/P5B/ruby/mon_projet/db/migrate/006_create_utilisateurs.rb
2008-11-25 22:11:16 +01:00

22 lines
735 B
Ruby

class CreateUtilisateurs < ActiveRecord::Migration
def self.up
create_table "utilisateurs", :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 :activation_code, :string, :limit => 40
t.column :activated_at, :datetime
end
end
def self.down
drop_table "utilisateurs"
end
end