Skip to content

Set schema in table_name for ActiveRecord model#274

Merged
siegy22 merged 1 commit intoque-rb:masterfrom
nikitug:patch-2
Sep 4, 2020
Merged

Set schema in table_name for ActiveRecord model#274
siegy22 merged 1 commit intoque-rb:masterfrom
nikitug:patch-2

Conversation

@nikitug
Copy link
Copy Markdown
Contributor

@nikitug nikitug commented Feb 11, 2020

As long as que_jobs is put into public namespace by purpose, it would be good to explicitly set it in ActiveRecord model. Otherwise application with changed search_path is not able to access que_jobs.

@siegy22
Copy link
Copy Markdown
Member

siegy22 commented Feb 12, 2020

So this only applies for postgres dbs which are setup with public removed in their search_path?

@nikitug
Copy link
Copy Markdown
Contributor Author

nikitug commented Feb 12, 2020

@siegy22 that's right

@siegy22 siegy22 merged commit da0fd08 into que-rb:master Sep 4, 2020
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

Successfully merging this pull request may close these issues.

2 participants