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
reviewedwith_writing_role do
Subscription.where(project_id: 128)
.active
.find_each do |subscription|
puts [
subscription.id,
subscription.next_billing_date
].to_csv
end
end
Workspace sign in
Welcome back
New to ScriptLib? Create an account