gitlabhq/db/migrate/20121123164910_rename_code_to_path.rb

12 lines
250 B
Ruby
Raw Normal View History

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