1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

6 commits

Author SHA1 Message Date
Yves Senn
395573b344 reuse view test-cases for pg materialized view tests. 2014-09-11 16:47:52 +02:00
Yves Senn
e6001cbac6 Oracle does not support IF EXISTS for DROP VIEW.
/cc @yahonda
2014-09-09 15:33:23 +02:00
Yves Senn
fde0d0219d models backed by views don't assume "id" columns are the primary key.
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 = ''`.
2014-09-09 15:17:46 +02:00
Yves Senn
ec6eee5db0 add test-cases for primary-key-less-views. Closes #16555. 2014-09-09 12:00:01 +02:00
Yves Senn
d2069d60ae Merge pull request #14056 from girishso/14041
SQLite3Adapter now checks for views in table_exists? fixes: 14041

Conflicts:
	activerecord/CHANGELOG.md
2014-09-09 11:35:17 +02:00
Yves Senn
ae9412e857 introduce connection.supports_views? and basic view tests.
`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
2014-09-09 11:26:30 +02:00