- 28 12月, 2014 1 次提交
-
-
由 Ryuta Kamizono 提交于
-
- 07 8月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
Currently when we call id_was and we have a custom primary key name Active Record will return the current value of the primary key. This make impossible to correctly do an update operation if you change the id. Fixes #16413
-
- 26 6月, 2014 1 次提交
-
-
由 Sean Griffin 提交于
Making this change revealed several subtle bugs related to models with no primary key, and anonymous classes. These have been fixed as well, with regression tests added.
-
- 06 6月, 2014 1 次提交
-
-
由 Yves Senn 提交于
/cc @zuhao
-
- 24 5月, 2014 1 次提交
-
-
由 Sean Griffin 提交于
It appears to have been used at some point in the past, but is no longer used in any meaningful way. Whether a column is considered primary is a property of the model, not the schema/column. This also removes the need for yet another layer of caching of the model's schema, and we can leave that to the schema cache.
-
- 12 5月, 2014 1 次提交
-
-
由 Patrick Robertson 提交于
In #10410 it was noted that you can no longer create PK's with the type of bigserial in PostgreSQL in 4.0.0.rc1. This is mostly because the newer adapter is checking for column type with the id column instead of just letting it pass through like it did before. Side effects: You may just create a PK column of a type that you really don't want to be your PK. As far as I can tell this was allowed in 3.2.X and perhaps an exception should be raised if you try and do something extremely dumb.
-
- 05 2月, 2014 1 次提交
-
- 09 11月, 2013 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 08 11月, 2013 1 次提交
-
-
由 Rafael Mendonça França 提交于
We can conditional define the tests depending on the adapter or connection. Lets keep the skip for fail tests that need to be fixed.
-
- 12 5月, 2013 1 次提交
-
-
由 Vipul A M 提交于
-
- 08 5月, 2013 1 次提交
-
-
由 Aaron Patterson 提交于
This reverts commit 3043d45e, reversing changes made to ca0275d3.
-
- 07 5月, 2013 1 次提交
-
-
由 Patrick Robertson 提交于
In #10410 it was noted that you can no longer create PK's with the type of bigserial in PostgreSQL in 4.0.0.rc1. This is mostly because the newer adapter is checking for column type with the id column instead of just letting it pass through like it did before. Side effects: You may just create a PK column of a type that you really don't want to be your PK. As far as I can tell this was allowed in 3.2.X and perhaps an exception should be raised if you try and do something extremely dumb.
-
- 18 1月, 2013 2 次提交
-
-
由 Guillermo Iguaran 提交于
This reverts commit 637a7d9d, reversing changes made to 5937bd02.
-
由 robertomiranda 提交于
-
- 02 1月, 2013 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 02 12月, 2012 2 次提交
-
-
由 Florent Guilleux 提交于
This reverts commit 90c887fa.
-
由 Florent Guilleux 提交于
-
- 26 10月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
In the end I think the pain of implementing this seamlessly was not worth the gain provided. The intention was that it would allow plain ruby objects that might not live in your main application to be subclassed and have persistence mixed in. But I've decided that the benefit of doing that is not worth the amount of complexity that the implementation introduced.
-
- 12 2月, 2012 1 次提交
-
-
由 Vishnu Atrai 提交于
-
- 11 2月, 2012 1 次提交
-
-
由 Karunakar (Ruby) 提交于
-
- 31 1月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 29 12月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 16 12月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Allows two models to use the same table but have different primary keys.
-
- 15 12月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 02 12月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Also make it actually work. It slows down all read_attribute accesses to map 'id' to whatever the PK actually is, inside read_attribute. So instead make sure the necessary methods are defined and that they redirect wherever they need to go.
-
- 30 11月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 06 10月, 2011 2 次提交
-
-
由 Jeremy Kemper 提交于
You can use multiple databases in your tests without disabling transactional fixtures.
-
由 Jon Leighton 提交于
This reverts commit ee2be435.
-
- 05 10月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
If we don't have a primary key when we ask for it, it's better to fail fast. Fixes GH #2307.
-
- 27 9月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Closes #2807.
-
- 06 8月, 2011 1 次提交
-
-
由 Santiago Pastorino 提交于
This reverts commit c5448721.
-
- 10 7月, 2011 1 次提交
-
-
由 Santiago Pastorino 提交于
-
- 07 6月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 05 6月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
-
- 30 3月, 2011 1 次提交
-
-
由 Andrew White 提交于
-
- 17 8月, 2010 1 次提交
-
-
由 Xavier Noria 提交于
code gardening: we have assert_(nil|blank|present), more concise, with better default failure messages - let's use them
-
- 15 8月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
This reverts commit 36a84a4f.
-
- 14 8月, 2010 2 次提交
-
-
由 Santiago Pastorino 提交于
[#5249]
-
由 Santiago Pastorino 提交于
[#5249]
-
- 18 7月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-