aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/view_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* reuse view test-cases for pg materialized view tests.Yves Senn2014-09-111-9/+27
|
* Oracle does not support `IF EXISTS` for `DROP VIEW`.Yves Senn2014-09-091-2/+2
| | | | /cc @yahonda
* models backed by views don't assume "id" columns are the primary key.Yves Senn2014-09-091-0/+11
| | | | | | | | Closes #10247. The same goes for tables with an "id" column but without primary key constraint. Reading from the view works without configuration. If you have an updateable view you need to use `self.primary_key = ''`.
* add test-cases for primary-key-less-views. Closes #16555.Yves Senn2014-09-091-0/+43
|
* Merge pull request #14056 from girishso/14041Yves Senn2014-09-091-1/+0
| | | | | | | SQLite3Adapter now checks for views in table_exists? fixes: 14041 Conflicts: activerecord/CHANGELOG.md
* introduce `connection.supports_views?` and basic view tests.Yves Senn2014-09-091-0/+42
`AbstractAdapter#supports_views?` defaults to `false` so we have to turn it on in adapter subclasses. Currently the flag only controls test execution. /cc @yahonda