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

Refs #22602 - explicit instead of implicit casting UUID casting #421

Merged
merged 1 commit into from May 7, 2019

Conversation

iNecas
Copy link
Member

@iNecas iNecas commented May 7, 2019

In production setup, we were getting:

 create cast must be owner of type character varying

The problem is this casting seems to be global, and we might not want
to do that for every case, and we don't have permissions for that.

In production setup, we were getting:

     create cast must be owner of type character varying

The problem is this casting seems to be global, and we might not want
to do that for every case, and we don't have permissions for that.
# We can't use transactional tests because we're using Sequel for the cleanup query
self.use_transactional_tests = false
before do
skip "Sqlite is running testing Dynlfow DB in memory" if ActiveRecord::Base.connection.adapter_name == 'SQLite'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't test the cleaner in sqite, because ActiveRecord and Sequel are running in separate DBs

Copy link
Contributor

@adamruzicka adamruzicka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and seems to work nicely. APJ

@iNecas
Copy link
Member Author

iNecas commented May 7, 2019

JP (well, one is still running, but it already passed the tasks tests)

@adamruzicka
Copy link
Contributor

Alright, let's get it it

@adamruzicka adamruzicka merged commit ce676e3 into theforeman:master May 7, 2019
@adamruzicka
Copy link
Contributor

Thanks @iNecas !

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