Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | schema dumper tests for hstore | Joel | 2012-02-08 | 1 | -0/+7 |
| | |||||
* | Additional hstore tests, supporting null values, better compliance with ↵ | Joel | 2012-02-08 | 1 | -7/+59 |
| | | | | postgres docs | ||||
* | PostgreSQL does not work in the same way of the other adapters | Rafael Mendonça França | 2012-02-08 | 1 | -3/+7 |
| | |||||
* | AR::Relation#pluck: improve to work with joins | Bogdan Gusiev | 2012-02-08 | 1 | -0/+11 |
| | |||||
* | Fix attribute_before_type_cast for serialized attributes. Fixes #4837. | Jon Leighton | 2012-02-07 | 1 | -0/+15 |
| | |||||
* | let automatic EXPLAIN ignore CACHE notifications | Xavier Noria | 2012-02-03 | 1 | -0/+48 |
| | |||||
* | Get ActiveRecord::TestCase back on its feet, despite deprecation. It ↵ | Jeremy Kemper | 2012-02-05 | 2 | -91/+7 |
| | | | | requires SQLCounter which was moved to AR internal tests only. | ||||
* | Merge pull request #4856 from ihid/store_null_bug | Aaron Patterson | 2012-02-02 | 1 | -2/+11 |
|\ | | | | | Allow store to be a not null column. | ||||
| * | Allow store to be a not null column. | Jeremy Walker | 2012-02-02 | 1 | -2/+11 |
| | | |||||
* | | columns method doesn't have name argument | Rafael Mendonça França | 2012-02-02 | 1 | -5/+4 |
| | | |||||
* | | Merge pull request #4543 from jdelStrother/find_or_init | Jon Leighton | 2012-02-01 | 1 | -0/+12 |
|\ \ | |/ |/| | Don't instantiate two objects in collection proxy / find_or_instantiate_by | ||||
| * | Don't instantiate two objects in collection proxy / find_or_instantiator_by | Jonathan del Strother | 2012-01-19 | 1 | -0/+12 |
| | | |||||
* | | Fix typo | Rafael Mendonça França | 2012-02-01 | 1 | -2/+2 |
| | | |||||
* | | Use human attribute name to show the dependent destroy message | Rafael Mendonça França | 2012-02-01 | 1 | -1/+25 |
| | | |||||
* | | Merge pull request #4828 from railsaholic/fix_error_message | José Valim | 2012-02-01 | 2 | -2/+2 |
|\ \ | | | | | | | fix has_one, has_many restrict error message | ||||
| * | | fix has_one, has_many restrict error message | Manoj | 2012-02-01 | 2 | -2/+2 |
| | | | |||||
* | | | Merge pull request #4806 from KL-7/do-not-serialize-nil | Aaron Patterson | 2012-02-01 | 1 | -1/+14 |
|\ \ \ | | | | | | | | | Do not serialize nil in serialized attribute. | ||||
| * | | | Do not serialize nil in serialized attribute. | Kirill Lashuk | 2012-01-31 | 1 | -1/+14 |
| | | | | |||||
* | | | | Merge pull request #4809 from cfeist/feist-sqlite-binary-corruption | Aaron Patterson | 2012-02-01 | 1 | -1/+1 |
|\ \ \ \ | |_|/ / |/| | | | Fix for SQLite binary data corrupter (to master branch) | ||||
| * | | | Added test to illustrate bad binary blobs. | Chris Feist | 2012-01-31 | 1 | -1/+1 |
| | | | | |||||
* | | | | fix a typo [ci skip] | Vijay Dev | 2012-02-01 | 1 | -1/+1 |
|/ / / | |||||
* | | | Revert "Merge pull request #4746 from jenslukowski/issue4718" | Aaron Patterson | 2012-01-31 | 1 | -8/+0 |
| | | | | | | | | | | | | | | | This reverts commit 5cad7a0dba652f3e942e58087bc88ba5c5390edc, reversing changes made to bb842e8d2111e50b21a14b8bd6d89371a4b9cd68. | ||||
* | | | Merge pull request #4805 from xuanxu/none_and_null_object_pattern | Jon Leighton | 2012-01-31 | 1 | -0/+13 |
|\ \ \ | |/ / |/| | | Added `none` query method to return zero records. | ||||
| * | | Added `none` query method to return zero records. | Juanjo Bazán | 2012-01-31 | 1 | -0/+13 |
| | | | | | | | | | And added NullRelation class implementing the null object pattern for the `Relation` class. | ||||
* | | | Merge pull request #4742 from petervandenabeele/master | Aaron Patterson | 2012-01-31 | 1 | -0/+3 |
|\ \ \ | | | | | | | | | Set the timezone correctly for a test in activerecord/../base_test.rb | ||||
| * | | | Set default_timezone explicitly for a test in activerecord/../base_test.rb | Peter Vandenabeele | 2012-01-29 | 1 | -0/+3 |
| | | | | |||||
* | | | | Merge pull request #4746 from jenslukowski/issue4718 | Aaron Patterson | 2012-01-31 | 1 | -0/+8 |
|\ \ \ \ | |_|/ / |/| | | | Test and fix for issue 4718 | ||||
| * | | | failing test case for Issue 4718 | Jens Lukowski | 2012-01-28 | 1 | -0/+8 |
| |/ / | |||||
* | | | Merge pull request #4791 from gregolsen/reflection_test_fixed | José Valim | 2012-01-31 | 2 | -3/+3 |
|\ \ \ | | | | | | | | | reflection test fixed | ||||
| * | | | test_get_ids_for_ordered_association fixed | gregolsen | 2012-01-31 | 1 | -1/+1 |
| | | | | |||||
| * | | | reflection test fixed | gregolsen | 2012-01-31 | 1 | -2/+2 |
| | | | | |||||
* | | | | Remove deprecation warnings from tests | Rafael Mendonça França | 2012-01-31 | 3 | -13/+28 |
|/ / / | |||||
* | | | Merge pull request #4783 from gregolsen/ids_reader_fix | Jon Leighton | 2012-01-31 | 1 | -0/+4 |
|\ \ \ | | | | | | | | | ids_reader method fixed, test added to has_many association (for PostgreSQL) | ||||
| * | | | ids_reader method fixed, test added to has_many association | gregolsen | 2012-01-31 | 1 | -0/+4 |
| | | | | |||||
* | | | | Merge pull request #4727 from railsaholic/dependent_restrict_should_add_error | Jon Leighton | 2012-01-31 | 2 | -14/+79 |
|\ \ \ \ | |/ / / |/| | | | has_many/has_one, :dependent => :restrict, deprecation added | ||||
| * | | | suggested fixes for :dependent => :restrict deprecation. | Manoj | 2012-01-31 | 2 | -32/+10 |
| | | | | |||||
| * | | | has_many/has_one, :dependent => :restrict, deprecation added. | Manoj | 2012-01-29 | 2 | -14/+101 |
| |/ / | |||||
* | | | Fix GH #4754. Remove double-quote when using ANSI_QUOTES | kennyj | 2012-01-31 | 1 | -0/+16 |
| | | | |||||
* | | | Replaced all 'for' loops with Enumerable#each | Nathan Broadbent | 2012-01-30 | 2 | -4/+4 |
|/ / | |||||
* | | Add `create_join_table` migration helper to create HABTM join tables | Rafael Mendonça França | 2012-01-27 | 3 | -1/+82 |
| | | |||||
* | | Fix regression from Rails 3.1 | Paul McMahon | 2012-01-27 | 1 | -0/+11 |
| | | | | | | | | | | | | Under Rails 3.1, you were allowed to pass a hash to a find_or_create method with multiple attribute names, but this was broken as the arguments were being improperly validated. | ||||
* | | disable automatic explain if there is no logger [closes #4671] | Xavier Noria | 2012-01-26 | 1 | -1/+15 |
| | | |||||
* | | fix fixtures test as table_name is a string now | Sergey Nartimov | 2012-01-26 | 1 | -2/+2 |
| | | |||||
* | | call to_s on value passed to table_name= | Sergey Nartimov | 2012-01-26 | 1 | -0/+5 |
| | | |||||
* | | The primary key is always initialized in the @attributes hash to nil (unless | Aaron Patterson | 2012-01-25 | 2 | -2/+3 |
| | | | | | | | | another value has been specified). | ||||
* | | Handle nil in add_index :length option in MySQL | Paul Sadauskas | 2012-01-24 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our schema.rb is being generated with an `add_index` line similar to this: add_index "foo", ["foo", "bar"], :name => "xxx", :length => {"foo"=>8, "bar=>nil} This is the same as it was on Rails 3.1.3, however, now when that schema.rb is evaluated, its generating bad SQL in MySQL: Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 1: CREATE UNIQUE INDEX `xxx` ON `foo` (`foo`(8), `bar`()) This commit adds a check for nil on the length attribute to prevent the empty parens from being output. | ||||
* | | Moving AR::TestCase in to the AR tests directory | Aaron Patterson | 2012-01-24 | 2 | -1/+64 |
| | | |||||
* | | Merge pull request #4558 from stephencelis/type-cast-unknown-should-fail | Aaron Patterson | 2012-01-23 | 2 | -7/+5 |
|\ \ | | | | | | | Don't type-cast unknown types to YAML. | ||||
| * | | Don't type-cast unknown types to YAML. | Stephen Celis | 2012-01-20 | 2 | -7/+5 |
| | | | |||||
* | | | Fix typo | Jari Jokinen | 2012-01-22 | 1 | -1/+1 |
| | | |