Tarmo Tänav
-
Ignore all exceptions for validates_acceptance_of columns fetch so it can run even without a database connection
Signed-off-by: Michael Koziarski
ea609b265ffc30cac00bf09a262027f96964ed6f
-
Support :limit on update_all so that has_many with :limit can be safely updated
Signed-off-by: Michael Koziarski
7c9851dbb6f841ffbf3ebd16e9f57c04319d3a39
-
Fixed test_find_last_by_one_attribute_caches_dynamic_finder for postgresql 8.3
Signed-off-by: Michael Koziarski
14d1560e85d5c4795c21ddb00953cf55e0525ee3
-
Don't run 32bit dependant assertions in 64bit environments
Signed-off-by: Michael Koziarski
671bbd962e1a5430bd495329ef0d863dede01169
-
Added button_to_remote helper
Ticket originally from http://dev.rubyonrails.org/ticket/3641
Signed-off-by: Jeremy Kemper
6450d6ca76603bc5d1b1a6cdcb77e33e35f53d83
-
Implement count limit/offset support for has_many associations
[#348 state:resolved]
Signed-off-by: Jeremy Kemper
96c6fe084228d570dad80e3100830edb2bc0448d
-
Alias included associations if needed when doing a count
[#302 state:resolved]
Signed-off-by: Jeremy Kemper
13671cc565aad2327f81a29789154b829ceeda04
-
Fix yet another implicit order dependant test
Signed-off-by: Michael Koziarski
eec5eb2e444b2b42206e2d5ccfe7f30306c308cb
-
Print the queries that were executed if assert_queries fails
3dfecfe77347421fbb54be70a5a84eb47c30acb6
-
Just look at sql_type when testing that the correct database-specific type was used
Signed-off-by: Michael Koziarski
ce3c76de7c0deda08a5ed0e064b8d37c26b60cfc
-
Back to fetching all versions in ruby instead of letting SQL do it as it's difficult to get all databases to convert the text value to a number with the same SQL
Signed-off-by: Jeremy Kemper
00d2165f748bc3d7c235daa959c54266a0a283db
-
Create mysql binary_fields table with latin1 character set as with utf8 all the limits would have to be divided by 3 to get the expected text types
Signed-off-by: Jeremy Kemper
973c0ef26d94b5cf2bd29dce177357d5905be211
-
Include mysql older than 5.1.23 in the 5.1 series in the list of those that can't handle NULL defaults
Signed-off-by: Jeremy Kemper
fa795ccfade59c4bbab91ada3bb34e5fbfac448c
-
Use DECIMAL instead of INTEGER when casting as mysql doesn't work with just "INTEGER" and other databases don't like "UNSIGNED" which mysql requires
And don't mask exceptions.
Signed-off-by: Jeremy Kemper
77b003fb615a1a0b197af9fbb9066622bf489b57
-
Cache migrated versions list in Migrator and use it to fetch the latest migrated version name [#845 state:resolved]
Also optimized Migrator#current_version class method to fetch
only the latest version number and not all of them.With this change no matter how many migrations there are the
schema_migrations table is only SELECTed from once.Signed-off-by: Jeremy Kemper
3d2ac918b987ef0cff34f6a7fdd20926b7a9e5d9
-
Load the first and not the last has_one result when doing join-based eager loading
This matters when the has_one is defined with an order in which case
there is an expectation that the first one will be loaded.[#904 state:resolved]
Signed-off-by: Jeremy Kemper
a445cdd8840c4e99c40c6d5b15ab380d39a56be3
-
Made migrations transactional for PostgreSQL [#834 state:resolved]
Patch originally from http://dev.rubyonrails.org/ticket/5470
707ee0e2695e85186d59aa407f09691ebfcc3125
-
Allow polymorphic_url helper to take url options. [#880 state:resolved]
All *_polymorphic_url, *_polymorphic_path helpers can now accept
an options hash which will be passed on to the named route
making it possible to generate polymorphic routes with additional
url parameters.Signed-off-by: Pratik Naik
98fb161dbb13feb18165468aedf1581d5c2305f4
-
Test for eager loading of STI subclasses from htm associations
Signed-off-by: Pratik Naik
96607996eaa826b5299780c7c9142e6e0157d198
-
Fixed STI type condition for eager loading of associations
Signed-off-by: Pratik Naik
2b69a636c431d62a85b2896d87b69cb13e2b8af0
-
Use type_condition method for hmt STI condition
b3c9d53b348f586ed223ec5de9f525faee6f564d
-
Fixed validates_uniqueness_of with decimal columns
Only use special case-sensitive comparison operators for text columns in
e3523f1d33c3cf53f1a65e520be5e937e9c68c1d
validates_uniqueness_of as mysql can fail at decimal comparisons with
the BINARY operator.
-
Fixed Time/Date object serialization
Time/Date objects used to be converted to_s instead of to_uaml
a5aad2e81febfa1a8d9fea0faffb5a3b4535982b
which made them unserializable.
-
Added missing fixtures for tests which fail to run independently if run after schema reset
Signed-off-by: Michael Koziarski
82343859d568799a4151facbde1f8c711ecb7a3f
-
Use "/usr/bin/env ruby" instead of "/usr/local/bin/ruby"
Signed-off-by: Joshua Peek
0b9bfbdebf402f4a149359a069dbeb05ea989b14
-
Fix file permissions
Signed-off-by: Joshua Peek
656f0e7c6c9a305abaf9f9b7fb80479b6f94efce
-
validates_uniqueness_of uses database case sensitivity support instead of using ruby
Signed-off-by: Michael Koziarski
f7eaab96d332528253d14581f747dd4b1b378a06
-
Fixed negative default integer parsing for Postgresql 8.3.3
Signed-off-by: Michael Koziarski
cb68b21a52a12b0773f0b4dac1c9c673c93ba355
-
Cast value to string in validates_uniqueness_of if the column is of text type
This fixes an error for postgresql where "text_column = 100" fails in version 8.3
Signed-off-by: Michael Koziarski
68b207b087588fc9a2cc8edb842408e3be5ba9ef
-
Fixed test_joins_with_namespaced_model_should_use_correct_type for postgresql
Signed-off-by: Michael Koziarski
896a3b9ab8dc02639ffa0b1dbf85011e1f3eda9b
-
SQLite: rename_column raises if the column doesn't exist.
[#622 state:resolved]
c1531ae00dbd3ac804bce02733e050ec43400607
-
Fixed postgresql limited eager loading for the case where scoped :order was present
8c91b767c0f36e9d767eb230ec42b111e57d90da
-
Some performance tweaks to ActiveSupport::Memoizable
Signed-off-by: Joshua Peek
911c2c381347ffb04615896ee6afe45277eeb103
-
Use sub instead of gsub
Signed-off-by: Joshua Peek
d27dd860c7f4f9b9e5aebe7d0c6e9b6108d8717c
-
Fixed mysql change_column_default to not make the column always nullable.
Also added change_column_null to both mysql and sqlite to keep the api features closer to postgresql.
[#617 state:resolved]
07578ac85585d3c64d4d38d4892fd31582c7c473
-
Fixed test_rename_nonexistent_column for PostgreSQL
Also fixed ability to run migration_test.rb alone
[#616 state:resolved]
8f72bc92e20b1242272714f253e23b256761ec1a
-
Use :namespace instead of :path_prefix for finding controller. [#544 state:resolved]
:namespace is supposed to be the module where controller exists.
:path_prefix can contain anything, including variables, which
makes it unsuitable for determining the module for a controller.Signed-off-by: Pratik Naik
a37d065f85941e1fe746dff4d42f015e1618834f
-
Always treat integer :limit as byte length. [#420 state:resolved]
baddea95e183b3bef290ec433f917ee8cd806934
-
Fixed that scopes defined with a string name could not be composed
1afae84ab2656cd58a861ab4a4b1745d80088d0f
-
Named bind variables can now be used with postgresql-style typecasts
For example :conditions => ['stringcol::integer = :var', { :var => 10 }]
509374ebe2dba0dc2ea7e44d67a6f8d530d12fac
will no longer raise an exception about ':integer' having a missing value.
-
Fix tests for postgres 8.3.x
Made test_with_limiting_with_custom_select not dependent on database
default order. Fixed tests with non-US monetary locale. The monetary
type is fixed precision so it should not expect the database to
return a float.Signed-off-by: Pratik Naik
c5d37c0662a65ce9723d668f57b59457e79ee5ca
-
Use 'public' schema path when connecting to 'postgres' database. [#170 state:resolved]
Signed-off-by: Pratik Naik
3fee2378edd45188e41a7d14d4ca0a88280b541e
-
Use 'postgres' database instead of 'template1'
The 'postgres' database is meant for use by utilities and third
4dedc7ddcaffa8c606af11ae2d32707131b99a2e
party applications. CONNECT permission to the 'template1' database
is usually only available to superusers which is why 'postgres'
should be preferred as users whith "CREATE DATABASE" permissions
are not neccessarily superusers.
-
create_table :force => true no longer tries to drop a non-existing table
Signed-off-by: Michael Koziarski
0a21193dc660396fb993b06d1d3c168a9cd900a5
-
Added AbstractAdapter#table_exists? and made AbstractAdapter#table implementation non-optional
Signed-off-by: Michael Koziarski
8877ab5852d9a1133eb9a730ae47dde214bafe55

