From 3b03aca2a823b0e86f6b674a4d3efa0b7c27cd47 Mon Sep 17 00:00:00 2001 From: "konstantin.grabar" Date: Mon, 28 Nov 2011 19:43:17 +0400 Subject: [PATCH] [refs #2249] Global renames fixes --- db/migrate/20111128140341_rename_name_and_unixname.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20111128140341_rename_name_and_unixname.rb b/db/migrate/20111128140341_rename_name_and_unixname.rb index 545a115a8..2a8b7c5b3 100644 --- a/db/migrate/20111128140341_rename_name_and_unixname.rb +++ b/db/migrate/20111128140341_rename_name_and_unixname.rb @@ -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