Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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