[refs #2249] Global renames fixes
This commit is contained in:
parent
148a0fec28
commit
3b03aca2a8
|
@ -1,6 +1,6 @@
|
||||||
class RenameNameAndUnixname < ActiveRecord::Migration
|
class RenameNameAndUnixname < ActiveRecord::Migration
|
||||||
def self.up
|
def self.up
|
||||||
rename_column :projects, :name, :description
|
remove_column :projects, :name
|
||||||
rename_column :projects, :unixname, :name
|
rename_column :projects, :unixname, :name
|
||||||
rename_column :platforms, :name, :description
|
rename_column :platforms, :name, :description
|
||||||
rename_column :platforms, :unixname, :name
|
rename_column :platforms, :unixname, :name
|
||||||
|
@ -9,7 +9,7 @@ class RenameNameAndUnixname < ActiveRecord::Migration
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
rename_column :projects, :description, :name
|
add_column :projects, :name, :string
|
||||||
rename_column :projects, :name, :unixname
|
rename_column :projects, :name, :unixname
|
||||||
rename_column :platforms, :description, :name
|
rename_column :platforms, :description, :name
|
||||||
rename_column :platforms, :name, :unixname
|
rename_column :platforms, :name, :unixname
|
||||||
|
|
Loading…
Reference in New Issue