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.

056_add_repositories_changes_permission.rb 463B

123456789101112
  1. class AddRepositoriesChangesPermission < ActiveRecord::Migration[4.2]
  2. # model removed
  3. class Permission < ActiveRecord::Base; end
  4. def self.up
  5. Permission.create :controller => 'repositories', :action => 'changes', :description => 'label_change_plural', :sort => 1475, :is_public => true, :mail_option => 0, :mail_enabled => 0
  6. end
  7. def self.down
  8. Permission.where(:controller => "repositories", :action => "changes").each {|p| p.destroy}
  9. end
  10. end