File: 103_set_custom_fields_editable.rb

package info (click to toggle)
redmine 1.4.4%2Bdfsg1-2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 13,124 kB
  • sloc: ruby: 72,074; sh: 536; php: 263; perl: 255; python: 150; makefile: 46; sql: 37
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