Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | ActiveRecord time zone aware attributes: blank string is treated as nil when ↵ | gbuesing | 2008-05-08 | 2 | -3/+11 | |
| | | | | assigned to writer | |||||
* | Fix Time.zone.parse from stripping time zone information and make Time aware ↵ | Scott Fleckenstein | 2008-05-08 | 2 | -1/+28 | |
| | | | | attribute methods use Time.zone.parse instead of to_time | |||||
* | Calling ActiveRecord#inspect on an unloaded association won't wipe the ↵ | Andreas Neuhaus | 2008-05-08 | 3 | -2/+12 | |
| | | | | | | collection [#9 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | create_table :force => true no longer tries to drop a non-existing table | Tarmo Tänav | 2008-05-07 | 2 | -2/+20 | |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | Added AbstractAdapter#table_exists? and made AbstractAdapter#table ↵ | Tarmo Tänav | 2008-05-07 | 4 | -128/+119 | |
| | | | | | | implementation non-optional Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | Added logic to associations.rb to make sure select_for_limited_ids | John Devine | 2008-05-06 | 2 | -1/+33 | |
| | | | | | | | | | includes joins that are needed to reach tables listed in the :order or :conditions options if they are not joined directly to the main active_record table. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#109 state:resolved] | |||||
* | Ensure correct record is returned when preloading has_one where more than ↵ | Frederick Cheung | 2008-05-06 | 3 | -1/+12 | |
| | | | | | | | one row exists Signed-off-by: Michael Koziarski <michael@koziarski.com> [#73 state:closed] | |||||
* | Restore dump_schema_information connection adapter method | Kyle Hargraves | 2008-05-05 | 1 | -0/+6 | |
| | ||||||
* | Added change_table for migrations (Jeff Dean) [#71 state:resolved] | David Heinemeier Hansson | 2008-05-03 | 7 | -9/+507 | |
| | ||||||
* | Improve documentation coverage and markup | Xavier Noria | 2008-05-02 | 15 | -197/+203 | |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Fix failing associate_with_create tests inserting null first_name | Jeremy Kemper | 2008-05-01 | 1 | -3/+3 | |
| | ||||||
* | Added missing files | David Heinemeier Hansson | 2008-05-01 | 3 | -0/+18 | |
| | ||||||
* | Merge branch 'master' of git@github.com:rails/rails | David Heinemeier Hansson | 2008-05-01 | 11 | -19/+107 | |
|\ | ||||||
| * | Fixed AssociationsPreload such that it doesnt require foreign keys to be ↵ | David Heinemeier Hansson | 2008-04-30 | 4 | -12/+44 | |
| | | | | | | | | integers (fcheung) [#33 state:resolved] | |||||
| * | Added block-setting of attributes for Base.create like Base.new already has ↵ | David Heinemeier Hansson | 2008-04-30 | 5 | -4/+56 | |
| | | | | | | | | (Adam Meehan) [#39 state:resolved] | |||||
| * | Fixed fixture caching with prefixed or suffixed tables. | Rhett Sutphin | 2008-04-30 | 2 | -3/+7 | |
| | | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | | best solution? | Steven Soroka | 2008-05-01 | 2 | -2/+14 | |
|/ | | | | Signed-off-by: Steven Soroka <ssoroka78@gmail.com> | |||||
* | Fixed that pessimistic locking you reference the quoted table name (Josh ↵ | David Heinemeier Hansson | 2008-04-30 | 4 | -2/+12 | |
| | | | | Susser) [#67 state:resolved] | |||||
* | Ensure postgresql tests work when starting from scratch. | Frederick Cheung | 2008-04-30 | 2 | -3/+1 | |
| | ||||||
* | Change tests against all scope to base scope as all is now used as a finder ↵ | David Heinemeier Hansson | 2008-04-30 | 3 | -14/+17 | |
| | | | | alias | |||||
* | Fixed that change_column should be able to use :null => true on a field that ↵ | David Heinemeier Hansson | 2008-04-29 | 2 | -1/+10 | |
| | | | | formerly had false [Nate Wiger] [#26 state:resolved] | |||||
* | Merge branch 'master' of git@github.com:rails/rails | David Heinemeier Hansson | 2008-04-29 | 1 | -1/+3 | |
|\ | ||||||
| * | Note that allow_concurrency = true means you need to ↵ | Jeremy Kemper | 2008-04-28 | 1 | -1/+3 | |
| | | | | | | | | verify_active_connections! to clear out connections assigned to stale threads. | |||||
* | | Default integer need not specify a limit [#20371 state:resolved] (matthuhiggins) | David Heinemeier Hansson | 2008-04-29 | 1 | -1/+1 | |
|/ | ||||||
* | Let Base.all use conditions etc like first/last | David Heinemeier Hansson | 2008-04-28 | 3 | -1/+10 | |
| | ||||||
* | Remove old :limit removal code from find_initial, logic is now handled in ↵ | Aliaksey Kandratsenka | 2008-04-27 | 1 | -1/+1 | |
| | | | | | | the preloading and eager loading code. Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | Ensure table names are quoted by the association preloading code. | Frederick Cheung | 2008-04-26 | 8 | -10/+83 | |
| | | | | | | [#45 state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | Added that the MySQL adapter should map integer to either smallint, int, or ↵ | David Heinemeier Hansson | 2008-04-25 | 2 | -0/+18 | |
| | | | | bigint depending on the :limit just like PostgreSQL [DHH] | |||||
* | Fixes a subtle bug when using symbols for key definitions in habtm associations | David Dollar | 2008-04-23 | 2 | -3/+32 | |
| | ||||||
* | Fix include? on has_many collections with finder_sql to fall back to Array ↵ | Joshua Bates | 2008-04-23 | 2 | -0/+12 | |
| | | | | | | include? rather than try to use SQL. [#18 state:resolved] | |||||
* | Provide data for the key column otherwise adding a unique index will fail. ↵ | Frederick Cheung | 2008-04-23 | 1 | -0/+1 | |
| | | | | [#30 state:closed] | |||||
* | Use schema.rb for all databases | Frederick Cheung | 2008-04-22 | 43 | -2928/+432 | |
| | | | | | | Move adapter specific schema into their own files Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | Use the rails user when creating and dropping the database rather than ↵ | Steven Soroka | 2008-04-21 | 1 | -6/+6 | |
| | | | | | | falling back to the currently logged in user who may or may not have CREATE / DROP privileges and no password. Closes #11564 (trac) | |||||
* | Avoid adding two DISTINCT statements to queries in sqlite 2. | Frederick Cheung | 2008-04-21 | 1 | -1/+1 | |
| | ||||||
* | Fix sqlite adapter to work with the quoted table names returned by later ↵ | Frederick Cheung | 2008-04-21 | 1 | -1/+1 | |
| | | | | versions of sqlite3. | |||||
* | Use define_callbacks helper for ActiveRecord validations. | Joshua Peek | 2008-04-20 | 2 | -30/+14 | |
| | ||||||
* | Tidy up ActiveSupport::Callbacks::CallbackChain instance API. | Joshua Peek | 2008-04-17 | 1 | -2/+1 | |
| | ||||||
* | Fix migrations when migrating to a specified version number with a fresh ↵ | Ian White | 2008-04-17 | 2 | -3/+12 | |
| | | | | | | database [#1 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | Ignore debug logs and ensure ActiveResource's log is cleaned up. | Joshua Peek | 2008-04-16 | 1 | -1/+0 | |
| | ||||||
* | Revert "Ensure that save on child object fails for invalid belongs_to ↵ | Michael Koziarski | 2008-04-11 | 3 | -16/+0 | |
| | | | | | | association. Closes #11555. [rubyruy]" This reverts commit c67e985994362290308073ed2793dd8e7f2a76db. | |||||
* | Change validates_uniqueness_of :case_sensitive option default back to true ↵ | Rick Olson | 2008-04-10 | 2 | -2/+4 | |
| | | | | | | (from [9160]). Love your database columns, don't LOWER them. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Ensure that save on child object fails for invalid belongs_to association. ↵ | Pratik Naik | 2008-04-10 | 3 | -0/+16 | |
| | | | | | | Closes #11555. [rubyruy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Add support for interleaving migrations by storing which migrations have run ↵ | Rick Olson | 2008-04-09 | 15 | -80/+204 | |
| | | | | | | in the new schema_migrations table. Closes #11493 [jordi] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | ActiveRecord::Base#sum defaults to 0 if no rows are returned. Closes #11550 ↵ | Rick Olson | 2008-04-08 | 3 | -1/+7 | |
| | | | | | | [kamal] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9243 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Improve ActiveRecord::Base#table_name unit tests for nested classes. Closes ↵ | Josh Peek | 2008-04-07 | 2 | -0/+7 | |
| | | | | | | #10289. [scott_willson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Ensure that respond_to? considers dynamic finder methods. Closes #11538. ↵ | Pratik Naik | 2008-04-06 | 4 | -13/+106 | |
| | | | | | | [floehopper] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Split associations_test.rb into multiple files based on association type. ↵ | Pratik Naik | 2008-04-06 | 7 | -2382/+2445 | |
| | | | | | | [Pratik] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Ensure that save on parent object fails for invalid has_one association. ↵ | Pratik Naik | 2008-04-06 | 3 | -0/+27 | |
| | | | | | | Closes #10518. [Pratik] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9232 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Remove duplicate code from associations. [Pratik] | Pratik Naik | 2008-04-06 | 6 | -164/+72 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9231 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Refactor HasManyThroughAssociation to inherit from HasManyAssociation. ↵ | Pratik Naik | 2008-04-06 | 10 | -95/+301 | |
| | | | | | | Association callbacks and <association>_ids= now work with hm:t. Closes #11516 [rubyruy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |