Jeremy Kemper
|
1c66ece244
|
Note that allow_concurrency = true means you need to verify_active_connections! to clear out connections assigned to stale threads.
|
2008-04-28 22:05:06 -07:00 |
|
David Heinemeier Hansson
|
0a6980f2dc
|
Let Base.all use conditions etc like first/last
|
2008-04-28 13:27:52 -05:00 |
|
Aliaksey Kandratsenka
|
361aaa04ef
|
Remove old :limit removal code from find_initial, logic is now handled in the preloading and eager loading code.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-04-27 20:01:05 +12:00 |
|
Frederick Cheung
|
44d2142352
|
Ensure table names are quoted by the association preloading code.
[#45 state:resolved]
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-04-26 12:14:50 +12:00 |
|
David Heinemeier Hansson
|
a37546517d
|
Added that the MySQL adapter should map integer to either smallint, int, or bigint depending on the :limit just like PostgreSQL [DHH]
|
2008-04-25 16:33:00 -05:00 |
|
David Dollar
|
6c1c16bfd9
|
Fixes a subtle bug when using symbols for key definitions in habtm associations
|
2008-04-23 21:02:00 +12:00 |
|
Joshua Bates
|
b6aa0e13b4
|
Fix include? on has_many collections with finder_sql to fall back to Array include? rather than try to use SQL.
[#18 state:resolved]
|
2008-04-23 20:18:09 +12:00 |
|
Frederick Cheung
|
ae51013c3f
|
Provide data for the key column otherwise adding a unique index will fail. [#30 state:closed]
|
2008-04-23 14:24:20 +12:00 |
|
Frederick Cheung
|
a4fc93c3a9
|
Use schema.rb for all databases
Move adapter specific schema into their own files
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-04-22 13:55:13 +12:00 |
|
Steven Soroka
|
f386676661
|
Use the rails user when creating and dropping the database rather than falling back to the currently logged in user who may or may not have CREATE / DROP privileges and no password.
Closes #11564 (trac)
|
2008-04-21 16:42:15 +12:00 |
|
Frederick Cheung
|
55622e0bde
|
Avoid adding two DISTINCT statements to queries in sqlite 2.
|
2008-04-21 11:47:15 +12:00 |
|
Frederick Cheung
|
a2028a7d7b
|
Fix sqlite adapter to work with the quoted table names returned by later versions of sqlite3.
|
2008-04-21 11:45:48 +12:00 |
|
Joshua Peek
|
46ab7422d9
|
Use define_callbacks helper for ActiveRecord validations.
|
2008-04-20 11:45:44 -05:00 |
|
Joshua Peek
|
cf04e62127
|
Tidy up ActiveSupport::Callbacks::CallbackChain instance API.
|
2008-04-17 23:30:01 -05:00 |
|
Ian White
|
82b4faf812
|
Fix migrations when migrating to a specified version number with a fresh database [#1 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-04-17 13:43:47 -05:00 |
|
Joshua Peek
|
9e53b63601
|
Ignore debug logs and ensure ActiveResource's log is cleaned up.
|
2008-04-16 13:17:03 -05:00 |
|
Michael Koziarski
|
2e74177d0b
|
Revert "Ensure that save on child object fails for invalid belongs_to association. Closes #11555. [rubyruy]"
This reverts commit c67e985994.
|
2008-04-11 16:04:11 +12:00 |
|
Rick Olson
|
ed99dda174
|
Change validates_uniqueness_of :case_sensitive option default back to true (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
|
2008-04-10 18:06:05 +00:00 |
|
Pratik Naik
|
c67e985994
|
Ensure that save on child object fails for invalid belongs_to association. Closes #11555. [rubyruy]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-10 13:48:43 +00:00 |
|
Rick Olson
|
8a5a9dcbf6
|
Add support for interleaving migrations by storing which migrations have run 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
|
2008-04-09 16:20:15 +00:00 |
|
Rick Olson
|
78c2d9fc22
|
ActiveRecord::Base#sum defaults to 0 if no rows are returned. Closes #11550 [kamal]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9243 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-08 05:20:33 +00:00 |
|
Josh Peek
|
4b68982f64
|
Improve ActiveRecord::Base#table_name unit tests for nested classes. Closes #10289. [scott_willson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-07 19:44:37 +00:00 |
|
Pratik Naik
|
4f39382a2f
|
Ensure that respond_to? considers dynamic finder methods. Closes #11538. [floehopper]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-06 22:26:15 +00:00 |
|
Pratik Naik
|
5b822aca4b
|
Split associations_test.rb into multiple files based on association type. [Pratik]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-06 03:01:09 +00:00 |
|
Pratik Naik
|
7ddc8f2e1b
|
Ensure that save on parent object fails for invalid has_one association. Closes #10518. [Pratik]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9232 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-06 02:32:51 +00:00 |
|
Pratik Naik
|
9bc75fd007
|
Remove duplicate code from associations. [Pratik]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9231 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-06 02:18:42 +00:00 |
|
Pratik Naik
|
f6b12c11cd
|
Refactor HasManyThroughAssociation to inherit from HasManyAssociation. 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
|
2008-04-06 00:27:12 +00:00 |
|
Pratik Naik
|
15d88885ee
|
Ensure HABTM#create and HABTM#build do not load entire association. [Pratik]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-05 16:25:48 +00:00 |
|
Pratik Naik
|
aa4af60aad
|
Improve documentation.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-05 03:52:58 +00:00 |
|
Josh Peek
|
08318b8bcd
|
Replaced callback method evaluation in AssociationCollection class to use ActiveSupport::Callbacks. Modified ActiveSupport::Callbacks::Callback#call to accept multiple arguments.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9225 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-04 20:26:42 +00:00 |
|
Michael Koziarski
|
36b8073ff5
|
Make HABTM#create behave the same as << with after_add callbacks. Closes #11374 [freels]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-04 14:37:22 +00:00 |
|
Michael Koziarski
|
50538fb524
|
Don't double include DISTINCT when the user has already specified it. Closes #11502 [kenneth.kalmer]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-04 12:06:22 +00:00 |
|
Michael Koziarski
|
295587f0ab
|
Tiny change to allow AR based creation of TIME columns in sqlite. Closes #11465 [h-lame]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9222 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-04 11:45:08 +00:00 |
|
Rick Olson
|
d450ac4459
|
Tweak ActiveRecord::Base#to_json to include a root value in the returned hash: {post: {title: ...}} [rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9202 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-01 20:09:45 +00:00 |
|
Rick Olson
|
e223216e9a
|
Add efficient #include? to AssociationCollection (for has_many/has_many :through/habtm). [stopdropandrew]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-01 18:27:22 +00:00 |
|
Jeremy Kemper
|
0c0c9fa863
|
Partial updates off by default
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-01 15:48:46 +00:00 |
|
Jeremy Kemper
|
300c927b6c
|
Ruby 1.9 compat: force encoding for binary comparison tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9193 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-01 06:58:52 +00:00 |
|
Jeremy Kemper
|
ba8e0a846f
|
Ruby 1.9 compat: work around YAML serialization error exposed by validations tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-01 06:46:40 +00:00 |
|
Jeremy Kemper
|
c3df9bfad2
|
Ruby 1.9 compat: delete DEFAULTS key from Hash not Omap array
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9191 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-01 06:33:16 +00:00 |
|
Jeremy Kemper
|
e4e3df8ef8
|
PostgreSQL: create_ and drop_database support. Closes #9042.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9182 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-01 05:01:10 +00:00 |
|
Jeremy Kemper
|
0a2e980ddd
|
Fix migration test when run in GMT zone. Closes #11477 [thechrisoshow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9175 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-01 00:28:40 +00:00 |
|
Pratik Naik
|
92cd8811aa
|
Ensure that validates_uniqueness_of works with with_scope. Closes #9235. [nik.wakelin, cavalle]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9168 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-31 12:57:47 +00:00 |
|
Jeremy Kemper
|
df0d56c1f6
|
Force timestamp update
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-31 03:57:25 +00:00 |
|
Jeremy Kemper
|
c52771e7a0
|
Fix case-sensitive validates_uniqueness_of. Closes #11366 [miloops]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-31 01:50:07 +00:00 |
|
Jeremy Kemper
|
97019f9f5a
|
Partial updates play nice with updated_at/on timestamps
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-31 01:49:57 +00:00 |
|
Jeremy Kemper
|
3aaf60def8
|
Add :message option to validates_numericality_of. Closes #11456 [miloops, mdempfle]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-31 01:49:31 +00:00 |
|
Jeremy Kemper
|
6b9448cdd2
|
Partial updates include only unsaved attributes. Off by default; set YourClass.partial_updates = true to enable.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-31 01:10:04 +00:00 |
|
Geoff Buesing
|
458fd10483
|
Removing unnecessary uses_tzinfo helper from tests, given that TZInfo is now bundled
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9150 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-30 23:01:06 +00:00 |
|
Jeremy Kemper
|
a5b7f131ed
|
Ruby 1.9: mark failing assertion
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-30 06:17:45 +00:00 |
|
Jeremy Kemper
|
373de28029
|
Ruby 1.9 compat. Trailing whitespace.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9146 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-30 06:17:37 +00:00 |
|