-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
rake db:test:prepare tries to load the structure.sql into development database #8032
Comments
The error is in line 415 of activerecord/lib/active_record/railties/databases.rake:
I'm not sure how this fix stays in line with recent changes in environments in rakefiles, but now my test database is properly created and |
This was exactly the commit f4ddc49
In this case the env should be "test" instead of "development". |
@Arsen7 have you read #7951 (comment)? |
We're seeing this in 3.2.9.rc1:
|
Works as expected in 3.2.6. |
@mperham could you check 3-2-stable? |
Not sure.
|
Figured it out, needed to checkout 3-2-stable and remove the branch option. |
Good, looks fixed - now a new error:
|
Opened #8067 to talk about that issue. |
Closing this one since it was fixed by e6b4184 |
e6b4184 fixes that issue too. [ci skip]
I have this error now on 4.0.0.rc2 and PostgreSQL |
Saw this warning with rails 4.1.7 after changing my schema_format to :sql and manually running rake db:test:prepare (as Rails test helper didn't seem to pull in the changes automatically). |
The last revision of 3-2-stable branch - commit 7f09bcd - drops, creates the test database, but the structure is loaded into development one.
A snippet from PostgreSQL log:
and so on..
I am looking for the exact commit somewhere between commit 45d78a3 and 7f09bcd where the problem has been introduced.
The text was updated successfully, but these errors were encountered: