SL

ScriptLib

Ruby console script library

Share console scripts without losing the operator context.

A focused workspace for data audits, repair snippets, dry runs, and the notes teams need before opening a Rails console.

billing-cycle-check.rb

reviewed
with_writing_role do
  Subscription.where(project_id: 128)
              .active
              .find_each do |subscription|
    puts [
      subscription.id,
      subscription.next_billing_date
    ].to_csv
  end
end

Account setup

Create your account

Create your account, then join from an invitation or create a team when you are ready.

Already have an account? Sign in