This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
artical_arr = [] | |
faq_arr = [] | |
study_arr = [] | |
video_arr = [] | |
product_arr = [] | |
trnsf_pg = [] | |
sliding_img = [] | |
cont_arr = [] | |
Product.find_each do |prod| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
artical_arr = [] | |
faq_arr = [] | |
study_arr = [] | |
video_arr = [] | |
product_arr = [] | |
trnsf_pg = [] | |
sliding_img = [] | |
Video.find_each do |vid| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
artic = [] | |
fa = [] | |
stud = [] | |
vid = [] | |
prod = [] | |
trnsf_pg = [] | |
Article.find_each do |art| | |
Article.where(" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
den = Product.find_by(name: "Daily Essential Nutrients (360)") | |
tracker_den_obj = Wellness::HardyProduct.where('lower(name) = ?', 'daily essential nutrients').first | |
tracker_den_obj.update_attributes(name: "Daily Essential Nutrients (360)", product_id: den.id, active: den.active) | |
# ============================================================================================= | |
Wellness::HardyProduct.where(product_id: nil).count | |
Product.count |