view .svn/pristine/72/7274c695571e958f3ca2e7a9525c8d48e60fc42c.svn-base @ 985:acaa61dde68b bug_522

Allow file attachment to wrap to avoid extra-wide text field
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 26 Oct 2012 17:18:52 +0100
parents cbb26bc654de
children
line wrap: on
line source
class AddRepositoriesChangesPermission < ActiveRecord::Migration
  # model removed
  class Permission < ActiveRecord::Base; end

  def self.up
    Permission.create :controller => 'repositories', :action => 'changes', :description => 'label_change_plural', :sort => 1475, :is_public => true, :mail_option => 0, :mail_enabled => 0
  end

  def self.down
    Permission.find_by_controller_and_action('repositories', 'changes').destroy
  end
end