Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 835 Bytes

File metadata and controls

34 lines (22 loc) · 835 Bytes

A simple example of how to use active_record outside of Rails.

Overview

The following snippet provides a minimal example of how to use active record outside of Rails. This example includes a trivial pair of models that can be used for exploration purposes.

Dependencies

  • ActiveRecord gem
  • require_all gem
  • sqlite gem

Install

  1. Run bundle
  2. Run rake db:migrate
  3. Run rake db:seed
  4. Run ./test.rb

Original Sources

This example is based off of a Git from Johannes Schickling

GitHub Gist, Johannes Schickling, Retrieved 1/2/17 https://gist.github.com/schickling/6762581

Copyright Notification

Any code written here that is not covered by Schickling's example is released under the public domain. The copyright status of Schickling's portion of the code is unknown