diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-09-05 11:36:41 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-09-05 11:36:41 +0200 |
commit | 5088eb8388fbfcb210a518f918ae5332e6d3979e (patch) | |
tree | 20b9394200b79e7eefc234cc50b0f3650e9afc1d /db/post_migrate/20190901040524_remove_score_from_tags.rb | |
parent | 0128509605ed90ee5a29d6af2347ab32bd46aeb9 (diff) | |
parent | e265b8887dbd883bc7ca04832dc67ffe46966889 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'db/post_migrate/20190901040524_remove_score_from_tags.rb')
-rw-r--r-- | db/post_migrate/20190901040524_remove_score_from_tags.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/post_migrate/20190901040524_remove_score_from_tags.rb b/db/post_migrate/20190901040524_remove_score_from_tags.rb new file mode 100644 index 000000000..a1112700b --- /dev/null +++ b/db/post_migrate/20190901040524_remove_score_from_tags.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +class RemoveScoreFromTags < ActiveRecord::Migration[5.2] + disable_ddl_transaction! + + def change + safety_assured do + remove_column :tags, :score, :int + remove_column :tags, :last_trend_at, :datetime + end + end +end |