Skip to content

Instantly share code, notes, and snippets.

View gduquesnay's full-sized avatar

Gordon DuQuqesnay gduquesnay

  • codeby2
  • Korea
View GitHub Profile
@gduquesnay
gduquesnay / authlogic_to_devise.rb
Created April 14, 2011 09:30 — forked from chebyte/authlogic_to_devise.rb
Migration for authlogic to devise
class MigrateUsers < ActiveRecord::Migration
def self.up
rename_column :users, :crypted_password, :encrypted_password
add_column :users, :confirmation_token, :string, :limit => 255
add_column :users, :confirmed_at, :timestamp
add_column :users, :confirmation_sent_at, :timestamp
execute "UPDATE users SET confirmed_at = created_at, confirmation_sent_at = created_at"
add_column :users, :reset_password_token, :string, :limit => 255