summaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2021-07-28 16:26:22 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2021-07-28 16:26:22 +0000
commit2be231b982a9bf53e88bdaf60a521df431b9bddb (patch)
treedd9ad4bd8064f462922873d065236ef93cac1446 /db/migrate
parent5c600cd492c99fda1218ee21a56ec90a8a010f01 (diff)
downloadredmine-2be231b982a9bf53e88bdaf60a521df431b9bddb.tar.gz
redmine-2be231b982a9bf53e88bdaf60a521df431b9bddb.zip
Removes unused column trackers.is_in_chlog (#31132).
git-svn-id: http://svn.redmine.org/redmine/trunk@21106 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20210728131544_drop_is_in_chlog_column.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20210728131544_drop_is_in_chlog_column.rb b/db/migrate/20210728131544_drop_is_in_chlog_column.rb
new file mode 100644
index 000000000..541239e97
--- /dev/null
+++ b/db/migrate/20210728131544_drop_is_in_chlog_column.rb
@@ -0,0 +1,9 @@
+class DropIsInChlogColumn < ActiveRecord::Migration[6.1]
+ def self.up
+ remove_column :trackers, :is_in_chlog
+ end
+
+ def self.down
+ add_column :trackers, :is_in_chlog, :boolean, :default => true, :null => false
+ end
+end