Sha256: dcbe3937019da516d2fdb8923704d93f24d628b737e025a6861dad2753a0c50c
Contents?: true
Size: 519 Bytes
Versions: 4
Compression:
Stored size: 519 Bytes
Contents
This is an example minimal app based off of [this blog post](https://www.techcareerbooster.com/blog/use-activerecord-in-your-ruby-project), archived [here](article.pdf) with permission of the author. It demonstrates: * database configuration * a migration * a model * loading all relevant code into a runtime and using it ``` bundle bundle exec rake db:create bundle exec rake db:migrate bundle exec irb -r ./boot.rb ``` ```ruby Movie.create! title: "Attack of the Cats", director: "Furball McCat" Movie.count ```
Version data entries
4 entries across 4 versions & 1 rubygems