summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-12-14 08:22:43 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-12-14 08:22:43 +0000
commit2e2e2cfe425c2664517fb59836fbd3eff5e35861 (patch)
treee3daa66ee8b36d2f1a1468ec9501fba5bc37d71c /db
parentc74f6d9f9bcf02ccc480a2028802b83ec5d91aca (diff)
downloadredmine-2e2e2cfe425c2664517fb59836fbd3eff5e35861.tar.gz
redmine-2e2e2cfe425c2664517fb59836fbd3eff5e35861.zip
Merged custom fields format refactoring.
git-svn-id: http://svn.redmine.org/redmine/trunk@12400 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20131124175346_add_custom_fields_format_store.rb9
-rw-r--r--db/migrate/20131210180802_add_custom_fields_description.rb9
2 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20131124175346_add_custom_fields_format_store.rb b/db/migrate/20131124175346_add_custom_fields_format_store.rb
new file mode 100644
index 000000000..47c7b313a
--- /dev/null
+++ b/db/migrate/20131124175346_add_custom_fields_format_store.rb
@@ -0,0 +1,9 @@
+class AddCustomFieldsFormatStore < ActiveRecord::Migration
+ def up
+ add_column :custom_fields, :format_store, :text
+ end
+
+ def down
+ remove_column :custom_fields, :format_store
+ end
+end
diff --git a/db/migrate/20131210180802_add_custom_fields_description.rb b/db/migrate/20131210180802_add_custom_fields_description.rb
new file mode 100644
index 000000000..8a5d9809d
--- /dev/null
+++ b/db/migrate/20131210180802_add_custom_fields_description.rb
@@ -0,0 +1,9 @@
+class AddCustomFieldsDescription < ActiveRecord::Migration
+ def up
+ add_column :custom_fields, :description, :text
+ end
+
+ def down
+ remove_column :custom_fields, :description
+ end
+end