David Heinemeier Hansson
|
c00de99f69
|
Switched to UTC-timebased version numbers for migrations and the schema. This will as good as eliminate the problem of multiple migrations getting the same version assigned in different branches. Also added rake db:migrate:up/down to apply individual migrations that may need to be run when you merge branches (closes #11458) [jbarnette]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9122 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-28 21:21:01 +00:00 |
|
David Heinemeier Hansson
|
bdd88810c1
|
Fixed that has_many :through would ignore the hash conditions (closes #11447) [miloops]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-28 16:13:57 +00:00 |
|
Rick Olson
|
c366515abd
|
Fix issue where the :uniq option of a has_many :through association is ignored when find(:all) is called. Closes #9407 [cavalle]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9096 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-26 15:40:57 +00:00 |
|
Rick Olson
|
1648208ab0
|
Fix duplicate table alias error when including an association with a has_many :through association on the same join table. Closes #7310 [cavalle]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9095 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-26 15:36:17 +00:00 |
|
Rick Olson
|
628ffad98b
|
More efficient association preloading code that compacts a through_records array in a central location. Closes #11427 [danger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9094 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-26 15:26:59 +00:00 |
|
Pratik Naik
|
ca9413674e
|
Improve documentation.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-26 12:27:52 +00:00 |
|
Michael Koziarski
|
5c47ceb30b
|
Typo fix in documentation from [9090] References #11422
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9092 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-26 02:44:16 +00:00 |
|
David Heinemeier Hansson
|
c10b2255b5
|
Fixed that ActiveRecord#Base.find_or_create/initialize would not honor attr_protected/accessible when used with a hash (closes #11422) [miloops]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9090 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-25 23:56:48 +00:00 |
|
David Heinemeier Hansson
|
c6f2af5c31
|
Added ActiveRecord#Base.all/first/last as aliases for find(:all/:first/:last) (closes #11413) [nkallen, thechrisoshow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9085 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-24 19:59:22 +00:00 |
|
Rick Olson
|
081ddb6f24
|
Merge the has_finder gem, renamed as 'named_scope'. Closes #11404 [nkallen]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-24 02:50:02 +00:00 |
|
Jeremy Kemper
|
0ff031992f
|
Fix merging blank conditions. Closes #10764 [mcmire, cavalle]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9082 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-23 05:00:25 +00:00 |
|
Jeremy Kemper
|
5c1be2812d
|
has_one :through supports :source_type. Fix up some tests. References #4756.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9075 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-22 02:20:37 +00:00 |
|
Rick Olson
|
c23c9bd11b
|
Allow association scoping for built/created records if :conditions is specified as a hash. Closes #11393 [miloops]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9068 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-21 18:21:56 +00:00 |
|
Rick Olson
|
273b21faa9
|
Add has_one :through support, finally. Closes #4756 [thechrisoshow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9067 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-21 18:09:03 +00:00 |
|
David Heinemeier Hansson
|
54213dadfd
|
Docfixes (closes #11356, #11172, #10523)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-20 02:15:29 +00:00 |
|
Jeremy Kemper
|
dfa6888311
|
Migrations: create_table supports primary_key_prefix_type. Closes #10314.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9056 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-18 18:23:14 +00:00 |
|
Jeremy Kemper
|
856a4dcf12
|
Refactor filters to use Active Support callbacks. Closes #11235.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9055 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-18 17:56:05 +00:00 |
|
David Heinemeier Hansson
|
75d98db73d
|
Only log if theres a logger
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9051 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-17 22:07:54 +00:00 |
|
David Heinemeier Hansson
|
fbf41c72a9
|
Added logging for dependency load errors with fixtures (closes #11056) [stuthulhu]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9050 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-17 21:48:28 +00:00 |
|
Geoff Buesing
|
54ccdd3343
|
Time, DateTime and TimeWithZone #in_time_zone defaults to Time.zone. Removing now unneeded #in_current_time_zone. ActiveRecord time zone aware attributes updated to use #in_time_zone
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9047 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-17 05:50:13 +00:00 |
|
David Heinemeier Hansson
|
9e4558671c
|
Ensure that you can still do expressions in calculations (closes #11355) [nbugajski/cavelle]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9043 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-17 04:02:34 +00:00 |
|
David Heinemeier Hansson
|
36a1418720
|
Docfix (closes #11309) [thechrisoshow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-13 18:45:54 +00:00 |
|
David Heinemeier Hansson
|
2c6e616b90
|
Fixed that scoped joins would not always be respected (closes #6821) [Theory/Danger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-13 18:41:42 +00:00 |
|
Rick Olson
|
7750afc4c1
|
Ensure that ActiveRecord::Calculations disambiguates field names with the table name. Closes #11027 [cavalle]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9018 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-13 03:06:51 +00:00 |
|
David Heinemeier Hansson
|
bcb47a843b
|
Added add/remove_timestamps to the schema statements for adding the created_at/updated_at columns on existing tables (closes #11129) [jramirez]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9014 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-13 02:17:04 +00:00 |
|
David Heinemeier Hansson
|
d5a4d5abb4
|
Added ActiveRecord::Base.find(:last) (closes #11338) [miloops]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9012 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-12 21:26:02 +00:00 |
|
Pratik Naik
|
8cc28daad6
|
Add warning in documentation for increment!, decrement! and toggle! methods. Closes #11098 [DefV]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9011 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-11 12:05:06 +00:00 |
|
Pratik Naik
|
e117350037
|
Add :readonly option to HasManyThrough associations. Closes #11156 [miloops]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8989 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-07 11:45:07 +00:00 |
|
Michael Koziarski
|
b3b0a0c388
|
Make the schema dumper respect the schema settings in database.yml. References #8659 [sveiss]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8979 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-03 06:56:31 +00:00 |
|
Michael Koziarski
|
4ca170fcea
|
Improve performance on :include/:conditions/:limit queries by selectively joining in the pre-query. Closes #9560 [dasil003]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-03 06:23:38 +00:00 |
|
Michael Koziarski
|
c1abe44306
|
Make the mysql schema dumper roundtrip the limits of text/blob columns. Closes #7424 [will.bryant]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-02 04:42:10 +00:00 |
|
Michael Koziarski
|
13a60b83a4
|
Improve performance by avoiding named block arguments. Closes #11109 [adymo]
Reapplies [8865] with some fixes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8957 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-29 23:16:53 +00:00 |
|
Jeremy Kemper
|
5dee6ce9e0
|
Fix that batched :include would pull in duplicate records in some cases. Closes #11215 [Catfish]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8942 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-28 20:42:01 +00:00 |
|
Jeremy Kemper
|
8352287c72
|
Fix edge case with colons in times interpreted as bind variables by requiring that bind vars start with a letter. Closes #10519 [matrix9180]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8936 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-27 23:05:59 +00:00 |
|
Jeremy Kemper
|
558c5ff251
|
Fix preloading nil polymorphic belongs_to. Closes #11218 [matrix9180]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8933 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-27 22:41:35 +00:00 |
|
Jeremy Kemper
|
0d70f31057
|
Remove dead code from hmt#delete. Closes #11236 [rubyruy]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8932 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-27 22:26:50 +00:00 |
|
Jeremy Kemper
|
c6a3a39fea
|
Fix rdoc typo. Closes #11205 [wangchun]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8927 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-24 00:37:12 +00:00 |
|
Jeremy Kemper
|
9a947af0e7
|
PostgreSQL: support server versions 7.4 through 8.0 and the ruby-pg driver. Closes #11127
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8922 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-22 03:26:21 +00:00 |
|
Michael Koziarski
|
e32149ad60
|
Correct typo in before_type_cast code. Closes #11165 [amishyn]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8898 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-19 21:01:10 +00:00 |
|
Jeremy Kemper
|
331d9c0491
|
Don't assume all records from nested include are of same class. Closes #11154 [acechase]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8896 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-19 02:56:05 +00:00 |
|
Michael Koziarski
|
21c75e545a
|
Ensure nested preloading works when associations return nil. Closes #11145 [GMFlash]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8894 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-18 04:49:56 +00:00 |
|
Michael Koziarski
|
f2546164d6
|
Make dynamic finders respect the :include on HasManyThrough associations. Closes #10998. [cpytel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8890 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-18 00:14:54 +00:00 |
|
Jeremy Kemper
|
23e58a0552
|
Fix observed_class. References #11099.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8889 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-17 22:52:55 +00:00 |
|
Geoff Buesing
|
2920bd22df
|
ActiveRecord::Base#instantiate_time_object only uses Time.zone when Base.time_zone_aware_attributes is true; leverages Time#time_with_datetime_fallback for readability
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8882 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-16 20:47:01 +00:00 |
|
Geoff Buesing
|
4e3ecec9c7
|
Refactor ActiveRecord::ConnectionAdapters::Column.new_time: leverage DateTime failover behavior of Time#time_with_datetime_fallback
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8881 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-16 20:13:38 +00:00 |
|
Michael Koziarski
|
f3fd2b18b7
|
Add test for Observer#observer_class and change the implementation slightly. Closes #11099 [ernesto.jimenez]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8875 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-15 23:09:51 +00:00 |
|
Jeremy Kemper
|
c55120c8e6
|
Revert [8865], broke AP record identifier. Reopens #11109.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8874 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-15 21:47:27 +00:00 |
|
Michael Koziarski
|
c75abf058e
|
Avoid repeated calls to Base#connection. Closes #11111 [adymo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8871 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-14 20:09:05 +00:00 |
|
Michael Koziarski
|
838b02450a
|
Optimisation for BigDecimal conversion code. Closes #11110 [adymo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8870 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-14 20:06:25 +00:00 |
|
Michael Koziarski
|
039f724c7b
|
Minor formatting changes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8869 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-14 20:02:19 +00:00 |
|