To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 055_add_repositories_type.rb @ 912:5e80956cc792

History | View | Annotate | Download (282 Bytes)

1 0:513646585e45 Chris
class AddRepositoriesType < ActiveRecord::Migration
2
  def self.up
3 909:cbb26bc654de Chris
    add_column :repositories, :type, :string
4 0:513646585e45 Chris
    # Set class name for existing SVN repositories
5
    Repository.update_all "type = 'Subversion'"
6
  end
7
8
  def self.down
9
    remove_column :repositories, :type
10
  end
11
end