gitlabhq/db/migrate/20121123164910_rename_code_to_path.rb
2012-11-23 21:11:09 +03:00

11 lines
250 B
Ruby

class RenameCodeToPath < ActiveRecord::Migration
def up
remove_column :projects, :code
rename_column :namespaces, :code, :path
end
def down
add_column :projects, :code, :string
rename_column :namespaces, :path, :code
end
end