You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

055_add_repositories_type.rb 287B

1234567891011
  1. class AddRepositoriesType < ActiveRecord::Migration[4.2]
  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. def self.down
  8. remove_column :repositories, :type
  9. end
  10. end