Deprecate code for Project. Use title and path
This commit is contained in:
parent
ab9d023651
commit
c50ec72b52
22 changed files with 79 additions and 83 deletions
11
db/migrate/20121123164910_rename_code_to_path.rb
Normal file
11
db/migrate/20121123164910_rename_code_to_path.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue