10 lines
179 B
Ruby
10 lines
179 B
Ruby
|
class RenameEmailInUser < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
rename_column :users, :email, :login
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
rename_column :users, :login, :email
|
||
|
end
|
||
|
end
|