mailr/db/migrate/20110927091830_rename_email_in_user.rb
2011-09-29 21:16:40 +02:00

10 lines
179 B
Ruby
Executable file

class RenameEmailInUser < ActiveRecord::Migration
def self.up
rename_column :users, :email, :login
end
def self.down
rename_column :users, :login, :email
end
end