https://github.com/lewagon/active-record-advanced
https://github.com/lewagon/active-record-advanced
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lewagon/active-record-advanced
- Owner: lewagon
- Created: 2014-10-27T11:17:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-03T20:57:33.000Z (almost 11 years ago)
- Last Synced: 2024-11-12T09:18:56.568Z (over 1 year ago)
- Language: Ruby
- Size: 118 KB
- Stars: 2
- Watchers: 7
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```