summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-23 11:40:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-23 11:40:14 +0000
commitb99c3caae8b40df163612e5d1461705a9d16fdb2 (patch)
tree8de5b9441746ff67e5a342eb12cf72fd4a468c3c /db
parentd74f0bfd5c53962e332c2dd4d30dafaa1105b92b (diff)
downloadredmine-b99c3caae8b40df163612e5d1461705a9d16fdb2.tar.gz
redmine-b99c3caae8b40df163612e5d1461705a9d16fdb2.zip
Renames column comments.comments to comments.content to please Rails 5.1 (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@16860 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170723112801_rename_comments_to_content.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20170723112801_rename_comments_to_content.rb b/db/migrate/20170723112801_rename_comments_to_content.rb
new file mode 100644
index 000000000..6c014286d
--- /dev/null
+++ b/db/migrate/20170723112801_rename_comments_to_content.rb
@@ -0,0 +1,5 @@
+class RenameCommentsToContent < ActiveRecord::Migration[5.1]
+ def change
+ rename_column :comments, :comments, :content
+ end
+end