Hey there! I’m trying to learn Ruby on Rails since I learned there is data mapper ORM for ruby (active record was major stopper for me in learning ruby). Did anyone actually used ROM with Ruby with Mysql/PostgreSQL/SQLite? I stumbled upon multiple problems but most of them as I can guess come from not fully understanding the Rails framework (e.g.: ROM - Setup here used DATABASE_URL which I do not have in shiny new rails project. Instead I have multiple database connections in database.yml)
So I could not make ROM with Rails work, since It’s not generating migrations with rake db:create_migration[“MyMigration”] or rake db:create_migration or similar.
I always get some kind of error about NoMethodError: undefined method `to_sym’ for nil:NilClass
OR something like that:
Database ‘db/development.sqlite3’ already exists
Database ‘db/test.sqlite3’ already exists
/my-project/db/schema.rb doesn’t exist yet. Run bin/rails db:migrate
to create it, then try again. If you do not intend to use a database, you should instead alter /my-project/config/application.rb to limit the frameworks that will be loaded.
Running bin/rails db:migrate does exactly nothing.