055_add_repositories_type.rb 287 Bytes
Newer Older
1
class AddRepositoriesType < ActiveRecord::Migration[4.2]
2
  def self.up
3
    add_column :repositories, :type, :string
4 5 6 7 8 9 10 11
    # Set class name for existing SVN repositories
    Repository.update_all "type = 'Subversion'"
  end

  def self.down
    remove_column :repositories, :type
  end
end