So I have some data loading in migrations, for instance a default user is created when the users table is made, and certain user Roles are created (like foo_admin) are created when the foos table is made.
The problem is cucumber doesn’t like this, since it does a schema load.
Can I either make cucumber just run the migrations instead, or is there a better practice for doing that type of thing? machinist is being used as the factory (no fixtures!)
Don’t use migrations to load data. It’s widely considered to be a bad practice as the data loads are not preserved when building schema.rb.
Load your data from a rake task or another method that you can hook into your env.rb file’s begin blog
Or something like that.