[refs #2249] Global renames fixes

This commit is contained in:
konstantin.grabar 2011-11-28 19:43:17 +04:00
parent 148a0fec28
commit 3b03aca2a8
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
class RenameNameAndUnixname < ActiveRecord::Migration
def self.up
rename_column :projects, :name, :description
remove_column :projects, :name
rename_column :projects, :unixname, :name
rename_column :platforms, :name, :description
rename_column :platforms, :unixname, :name
@ -9,7 +9,7 @@ class RenameNameAndUnixname < ActiveRecord::Migration
end
def self.down
rename_column :projects, :description, :name
add_column :projects, :name, :string
rename_column :projects, :name, :unixname
rename_column :platforms, :description, :name
rename_column :platforms, :name, :unixname