ActiveRecord is a nice lightweight way to access database tables from Ruby code. I use it outside of Rails for simple scripts and in customer test scripts.
If you want to use ActiveRecord outside of Rails you just need to:
- Download ActiveRecord
- Configure the database
- Define the schema
Configure the database
Define the Schema
We can now use our ActiveRecord database objects in our scripts.