mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
10 lines
279 B
Ruby
10 lines
279 B
Ruby
class FixByPopularity < ActiveRecord::Migration
|
|
def up
|
|
execute("UPDATE product_scopes SET name='descend_by_popularity' WHERE name='by_popularity'")
|
|
end
|
|
|
|
def down
|
|
execute("UPDATE product_scopes SET name='by_popularity' WHERE name='descend_by_popularity'")
|
|
end
|
|
end
|