2007-06-13 00:12:05 +04:00
|
|
|
class AddRepositoriesType < ActiveRecord::Migration
|
|
|
|
def self.up
|
2011-11-07 04:13:26 +04:00
|
|
|
add_column :repositories, :type, :string
|
2007-06-13 00:12:05 +04:00
|
|
|
# Set class name for existing SVN repositories
|
|
|
|
Repository.update_all "type = 'Subversion'"
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
remove_column :repositories, :type
|
|
|
|
end
|
|
|
|
end
|