mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-04-13 03:19:10 -04:00
[CodeFactor] Apply fixes to commit 17fa995
This commit is contained in:
committed by
Brenda Wallace
parent
aab345cf09
commit
a595a2cd8e
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CropHarvestCounterCache < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
change_table :crops do |t|
|
||||
@@ -7,6 +9,7 @@ class CropHarvestCounterCache < ActiveRecord::Migration[5.2]
|
||||
dir.up { set_counter_value }
|
||||
end
|
||||
end
|
||||
|
||||
def set_counter_value
|
||||
execute <<-SQL.squish
|
||||
UPDATE crops
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CropPhotoCounterCache < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
change_table :crops do |t|
|
||||
@@ -7,6 +9,7 @@ class CropPhotoCounterCache < ActiveRecord::Migration[5.2]
|
||||
dir.up { set_counter_value }
|
||||
end
|
||||
end
|
||||
|
||||
def set_counter_value
|
||||
execute <<-SQL.squish
|
||||
UPDATE crops
|
||||
|
||||
Reference in New Issue
Block a user