Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation Warning with Rails 5.0.7 #58

Open
rmeritz opened this issue Dec 23, 2019 · 3 comments
Open

Deprecation Warning with Rails 5.0.7 #58

rmeritz opened this issue Dec 23, 2019 · 3 comments

Comments

@rmeritz
Copy link

rmeritz commented Dec 23, 2019

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
Copy link
Author

rmeritz commented Dec 27, 2019

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

@rmeritz rmeritz closed this as completed Dec 27, 2019
@thewoolleyman
Copy link
Collaborator

@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 thewoolleyman reopened this Dec 30, 2019
@nertzy
Copy link
Contributor

nertzy commented Feb 12, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants