foodsoft/db/migrate/20140318173000_delete_empty_group_order_articles.rb
Philipp Rothmann fb2b4d8a8a chore: rubocop
chore: fix api test conventions

chore: rubocop -A spec/

chore: more rubocop -A

fix failing test

rubocop fixes

removes helper methods that are in my opinion dead code

more rubocop fixes

rubocop -a --auto-gen-config
2023-06-09 17:35:05 +02:00

8 lines
296 B
Ruby

class DeleteEmptyGroupOrderArticles < ActiveRecord::Migration[4.2]
def up
# up until recently, group_order_articles with all quantities zero were saved
GroupOrderArticle.where(quantity: 0, tolerance: 0, result: [0, nil], result_computed: [0, nil]).delete_all
end
def down; end
end