Skip to content

Commit

Permalink
fix: Awesome migration should not modify data
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentinchampenois committed Nov 13, 2023
1 parent cc17809 commit 76537db
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ class ChangeAwesomeConfigVarType < ActiveRecord::Migration[5.2]
def change
change_column :decidim_awesome_config, :var, :string

Decidim::DecidimAwesome::AwesomeConfig.find_each do |config|
config.var.gsub!('"', "")
config.save!
end
# Move to rake task if needed
# Decidim::DecidimAwesome::AwesomeConfig.find_each do |config|
# config.var.gsub!('"', "")
# config.save!
# end
end
end

0 comments on commit 76537db

Please sign in to comment.