From 8e058e40cb4c402356ad61c5ef1c71b8c36f1744 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Wed, 17 Mar 2010 14:03:25 +0000 Subject: [PATCH] Rename user to username git-svn-id: file:///home/svn/framework3/trunk@8838 4d416f70-5f16-0410-b530-b9f4589650da --- data/sql/migrate/015_rename_user.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 data/sql/migrate/015_rename_user.rb diff --git a/data/sql/migrate/015_rename_user.rb b/data/sql/migrate/015_rename_user.rb new file mode 100644 index 0000000000..7934a0f423 --- /dev/null +++ b/data/sql/migrate/015_rename_user.rb @@ -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 +