Skip to content

Instantly share code, notes, and snippets.

View vlad-at-work's full-sized avatar
👺

Volodymyr vlad-at-work

👺
View GitHub Profile
@vlad-at-work
vlad-at-work / Rakefile
Last active September 27, 2016 18:50
This is an updated Rakefile to for those who want to use Sequel with Hanami-RB, using the nifty Rails-like commands.
#
# You might need dotenv and colorize gems for this one to play nice
#
# The original work by Rodrigo Panachi:
# http://rpanachi.com/2016/04/11/from-rails-to-hanami-part2-sequel-migrations-model-validations-specs-fixtures
#
# For some reason I couldn't get his solution to work for the life of me, so
# I include the Hanami environment and used slightly more concise forms of `exec`
# as well as Sequel DB directly here and there. hanami/rake_tasks seems to be loading something which
# breaks migrations, so I advise you to keep that one commented out. Doesn't affect minitest.