fixture_builder icon indicating copy to clipboard operation
fixture_builder copied to clipboard

Deprecation Warning with Rails 5.0.7

Open rmeritz opened this issue 4 years ago • 3 comments

I get the following deprecation warning when using fixture_builder with Rails 5.0.7 several times every times the fixtures are rebuilt.

DEPRECATION WARNING: #tables currently returns both tables and views. This behavior is deprecated and will be changed with Rails 5.1 to only return tables. Use #data_sources instead. (called from block in <top (required)> at /home/runner/contexttravelapi/spec/support/fixture_builder.rb:4)

Where line 4 is the start of my fbuilder.factory do block.

I had no issues or warning when working with the gem and Rails 4.

rmeritz avatar Dec 23 '19 21:12 rmeritz

This disappeared on upgrade to Rails 5.1 and fixture builder continued to work.

rmeritz avatar Dec 27 '19 20:12 rmeritz

@rmeritz Thanks for the report! I'm going to go ahead and leave this open to fix, as I suspect it might still break for people that do have views in their database.

thewoolleyman avatar Dec 30 '19 18:12 thewoolleyman

It does not break for me, and I use views in my databases.

nertzy avatar Feb 12 '22 23:02 nertzy