Day 004 - #100DaysOfCode
Update
Had a play with Closure Tree Gem. Basically set it up outside of rails, worked out I could not call the generator to create a migration for the gem without rails. In the end I generated the migration in another rails repo and copied it across. I would have thought that something similar to the below code should have worked? given that I had Railties already installed due to my dependence on standalone_migrations
and ActiveRecord
?
This led to initially Thor::Parser::Options
failing to call each
on nil:NilClass
.
When I tried to get past that in a binding.irb
session I got an invalid call to .underscore
on Pathname
as I presume I don’t have Rails which adds that method to String
?
Next Up
Although I got a hierarchy of related objects I didn’t do much with them.
- I didn’t print them out nicely as a JSON or similar from the spec on github
- I had no use for them, like doing roll up calculations or something
- I did not visualise them on a front end.
All of those may be ideas for next time.