mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
17 lines
424 B
Ruby
17 lines
424 B
Ruby
class DropMailMethods < ActiveRecord::Migration
|
|
def up
|
|
drop_table :spree_mail_methods
|
|
|
|
# delete mail_method preferences associated with the old MailMethod model
|
|
execute "DELETE FROM spree_preferences WHERE key LIKE 'spree/mail_method%'"
|
|
end
|
|
|
|
def down
|
|
create_table :spree_mail_methods do |t|
|
|
t.string :environment
|
|
t.boolean :active, default: true
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|