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 / .svn / pristine / d7 / d7cb3e22a5af1c2128900548a729a136400a6330.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (282 Bytes)

1
class AddRepositoriesType < ActiveRecord::Migration
2
  def self.up
3
    add_column :repositories, :type, :string
4
    # 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