Rename user to username
git-svn-id: file:///home/svn/framework3/trunk@8838 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
efceaa84cf
commit
8e058e40cb
|
@ -0,0 +1,16 @@
|
|||
class RenameUser < ActiveRecord::Migration
|
||||
def self.up
|
||||
remove_column :events, :user
|
||||
change_table :events do |t|
|
||||
t.string :username
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :events, :username
|
||||
change_table :events do |t|
|
||||
t.string :user
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue