10 lines
179 B
Ruby
Executable file
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
|