retrospring/db/migrate/20230227174822_remove_is_active_from_subscriptions.rb
2023-05-05 16:01:40 +02:00

8 lines
228 B
Ruby

# frozen_string_literal: true
class RemoveIsActiveFromSubscriptions < ActiveRecord::Migration[6.1]
def up
execute "DELETE FROM subscriptions WHERE is_active = FALSE"
remove_column :subscriptions, :is_active
end
end