Retrospring/db/migrate/20230227174822_remove_is_ac...

9 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