I have a simple ruby script I would like to run in the rails console, using bundle exec rails c

```
ids = [1, 2]

if ids.length() > 5
    puts "More than 5 ids, quitting"
    exit
end

ids.each do |id|
    puts id
end

```

The rails console quits the program as soon as it sees the exit command. What would be the best way around this?