Logo
Explore Help
Register Sign In
Nemcio/Redmine
1
0
Fork 0
You've already forked Redmine
mirror of https://github.com/redmine/redmine.git synced 2025-10-26 15:56:15 +01:00
Code Issues Packages Projects Releases Activity
Files
12e00d77e16e5886ce44bbade724cbf242516751
Redmine/db/migrate/20101107130441_add_custom_fields_visible.rb

11 lines
312 B
Ruby
Raw Normal View History

Merged rails-5.1 branch (#23630). git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-23 11:26:04 +00:00
class AddCustomFieldsVisible < ActiveRecord::Migration[4.2]
Adds a "visible" option on User and Project custom fields (#1738). If set to false, the custom field won't be display on user profile/project overview. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4382 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-07 14:15:01 +00:00
def self.up
add_column :custom_fields, :visible, :boolean, :null => false, :default => true
Make sure existing custom fields visibility is set to true. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4383 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-07 14:17:35 +00:00
CustomField.update_all("visible = #{CustomField.connection.quoted_true}")
Adds a "visible" option on User and Project custom fields (#1738). If set to false, the custom field won't be display on user profile/project overview. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4382 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-07 14:15:01 +00:00
end
def self.down
remove_column :custom_fields, :visible
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.7 Page: 255ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API