選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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