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 |
|
Jeremy Kemper
|
81286f8587
|
Dirty typecasts attribute values before comparison, if possible. Closes #11464 [Russell Norris, mroch]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9139 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-29 22:19:26 +00:00 |
|
David Heinemeier Hansson
|
f34d57e2d2
|
Fixed that validates_size_of :within works in associations (closes #11295, #10019) [cavalle]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-29 17:53:44 +00:00 |
|
Jeremy Kemper
|
bbf738f269
|
Track changes to unsaved attributes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-29 00:04:27 +00:00 |
|
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 |
|
Jeremy Kemper
|
6b5fe9c644
|
Fix some mistaken dependencies among AR unit tests. Closes #11425 [thechrisoshow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-28 20:21:20 +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 |
|
Pratik Naik
|
533da24bbc
|
Make sure ActiveRecord tests can run individually. Closes #11425 [thechrisoshow, h-lame]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-28 11:55:01 +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 |
|
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 |
|
Jeremy Kemper
|
98d87f38fc
|
Fix schema.rb some more. sponsors.sponsorable_type should be a string. References #4756.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9073 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-21 23:15:21 +00:00 |
|
Jeremy Kemper
|
36baabe24c
|
Fix schema.rb. Please to be testing on more than just MySQL! References #9067.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9072 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-21 23:10:42 +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 |
|
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 |
|
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
|
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 |
|
Geoff Buesing
|
8e21ec36cf
|
test_native_types expects DateTime.local_offset instead of DateTime.now.offset; fixes test breakage due to dst transition
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-10 06:48:15 +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
|
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
|
18aa19c68a
|
Provide a post title for sqlite3
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8943 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-28 21:01:04 +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
|
d6e355d1df
|
mark encoding
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8941 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-28 20:41:41 +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
|
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
|
44c169397a
|
Move the eager load nested include tables into schema.rb and use delete_all instead of drop table to reset the state.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8914 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-20 05:31:03 +00:00 |
|