retrospring/db/migrate/20230227174822_remove_is_active_from_subscriptions.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
228 B
Ruby
Raw Normal View History

# 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