An open API service indexing awesome lists of open source software.

https://github.com/lewagon/active-record-advanced


https://github.com/lewagon/active-record-advanced

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

## ActiveRecord advanced boilerplate

This is a minimalist implementation of ActiveRecord with several models (`Doctor`, `Patient`, `Intern`, `Consultation`) to live-code a demo for @LeWagon students, part of [Karr examples](https://github.com/lewagon/karr-examples)

- clone the repo
- run `rake db:create` to create your db
- run your migrations with `rake db:migrate`

Now you can play with the models.

```bash
$ irb
irb> load "config/application.rb"
irb> doctor = Doctor.new(first_name: "Gregory", last_name: "House")
irb> doctor.save
```