bullet-train-pro / bullet_train-action_models

Other
5 stars 1 forks source link

Trying to be able to run action model tests in the starter repo #83

Closed jagthedrummer closed 1 year ago

jagthedrummer commented 1 year ago

I was trying to run the action model tests in the starter repo and was seeing two different errors that were preventing the setup script from even running.

  1. Complaints about "created_bys is not a table" & "approved_bys is not a table"

    This seems to be related to how we're generating models on the command line.

  2. Complaints about a missing method called legacy_replace_in_file

Joint PR: https://github.com/bullet-train-co/bullet_train/pull/891

jagthedrummer commented 1 year ago

It turns out that the errors about "created_bys is not a table" & "approved_bys is not a table" were directly related to the missing legacy_replace_in_file method. Once I got that method in place the migrations are being altered correctly so that Rails doesn't look for the created_bys and approved_bys tables.