File: 103_set_custom_fields_editable.rb

package info (click to toggle)
redmine 3.3.1-4%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 19,156 kB
  • sloc: ruby: 84,625; sh: 399; perl: 303; python: 154; makefile: 19
file content (9 lines) | stat: -rw-r--r-- 270 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
class SetCustomFieldsEditable < ActiveRecord::Migration
  def self.up
    UserCustomField.update_all("editable = #{CustomField.connection.quoted_false}")
  end

  def self.down
    UserCustomField.update_all("editable = #{CustomField.connection.quoted_true}")
  end
end