Rename user to username

git-svn-id: file:///home/svn/framework3/trunk@8838 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-03-17 14:03:25 +00:00
parent efceaa84cf
commit 8e058e40cb
1 changed files with 16 additions and 0 deletions

View File

@ -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