mailr/db/migrate/20110927091830_rename_email_in_user.rb

10 lines
179 B
Ruby
Raw Normal View History

2011-09-29 21:16:40 +02:00
class RenameEmailInUser < ActiveRecord::Migration
def self.up
rename_column :users, :email, :login
end
def self.down
rename_column :users, :login, :email
end
end