- 02 4月, 2014 18 次提交
-
-
由 Matthew Draper 提交于
Restore the 4.0 behaviour for 'sqlite3:///', but deprecate it. We'll change to the absolute-path interpretation in 4.2. The current "correct" spellings for in-memory, relative, and absolute URLs, respectively, are: sqlite3::memory: sqlite3:relative/path sqlite3:/full/path Substantially reverses/defers fbb79b51. Uncovered by @guilleiguaran while investigating #14495, though that sounds like a different issue.
-
由 Rafael Mendonça França 提交于
We can conditional define the tests depending on the adapter or connection.
-
由 Rajarshi Das 提交于
connection.
-
由 Dave Lee 提交于
Expand the query used in #table_exists? to include materialized views in the kinds of relations it searches.
-
由 Yves Senn 提交于
Also do not use transactional fixtures. We drop the type and the table after every run, so there is nothing for the transaction to clean up.
-
由 Yves Senn 提交于
Allow postgresql enum_test to be run in random order.
-
由 Rafael Mendonça França 提交于
Changed 'so' to 'see'
-
由 Guo Xiang Tan 提交于
Creating and dropping similar tables within the same connection causes postgresql to look up old values in the cache of tables which have already been dropped.
-
由 Benjamin Winkler 提交于
-
由 Aaron Patterson 提交于
* rmc: push move_string in to `move` combine move_regexp and move_string so we only loop over states once do not create memo objects since we'll just throw them away only ask if `t` is empty once.
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Jeremy Kemper 提交于
* Clarify what the situation is and what to do. * Advise loading schema using `rake db:setup` instead of migrating. * Use a rescue in the initializer rather than extending the error message in-place. * Preserve the original backtrace of other errors by using `raise` rather than raising again with `raise error`. References 0ec45cd1
-
由 Yves Senn 提交于
-
- 01 4月, 2014 13 次提交
-
-
由 Rafael Mendonça França 提交于
PostgreSQL determine `Column#type` through corresponding OID. #7814
-
由 Yves Senn 提交于
I ran the whole test suite and compared the old to the new types. Following is the list of types that did change with this patch: ``` DIFFERENT TYPE FOR mood: NEW: enum, BEFORE: DIFFERENT TYPE FOR floatrange: NEW: floatrange, BEFORE: float ``` The `floatrange` is a custom type. The old type `float` was simply a coincidence form the name `floatrange` and our type-guessing.
-
由 Rafael Mendonça França 提交于
refactor assert_sql query to reuse capture_sql
-
由 eileencodes 提交于
set assert_sql to reuse the capture_sql method from above instead of repeating the code in response to comments on issue #14546
-
由 Aaron Patterson 提交于
Fix delete all to not produce sql in statement
-
由 eileencodes 提交于
When delete_all is run on a CollectionProxy and has a dependency of delete_all the SQL that is produced has an IN statement. (DELETE FROM `associated_model` where `associated_model` .`parent_id` = 1 AND `associated_model`.`id` IN (1, 2, 3...)). This only happens if the association is not loaded (both loaded and non-loaded delete_all should behave the same. This is a huge problem when it comes to deleting many records because the query becomes very slow. Instead the SQL produced should be (DELETE FROM `assoicated_model` where `associated_model`.`parent_model_id`=1). I fixed this by making sure the check for loaded and destroy also makes sure that the dependent is not delete_all, so the conditional goes to the else and deletes the records directly without the IN statement.
-
由 eileencodes 提交于
delete_all sql if an association is not loaded should behave the same as if the association is loaded. This test ensures the SQL statements are exactly the same.
-
由 eileencodes 提交于
Other methods compare specific patterns, this method outputs the actual sql query that is generated.
-
由 Guillermo Iguaran 提交于
Do not overwrite selected and disabled attributes
-
由 Laura Paredes 提交于
-
由 Rafael Mendonça França 提交于
Fix release task
-
由 Arthur Neves 提交于
Add a parentheses. related: b4c96490
-
由 Aaron Patterson 提交于
Fix polymorphic preloads on NOT NULL _type columns
-
- 31 3月, 2014 9 次提交
-
-
由 Yves Senn 提交于
We have `connection_adapters/column.rb` so it's easier to remember that the column in in a separate file.
-
由 Arun Agrawal 提交于
Tiny doc fix for Strong Parameters
-
由 Ian C. Anderson 提交于
- accepts_nested_attribute_for -> accepts_nested_attributes_for
-
由 thedarkone 提交于
The new method relies on AR::Associations::Association knowing about both reflection and a model class. AR::Base#association now raises a descriptive error when trying to access non-existent associations. Previously it would blow up with a confusing NoMethodError: undefined method `association_class' for nil:NilClass.
-
由 Rafael Mendonça França 提交于
remove calls to sql_type on pg columns
-
由 thedarkone 提交于
Defer to Association#klass instead of having a custom/duplicate code.
-
由 Laura Paredes 提交于
-
由 Luke Steensen 提交于
-
由 Rafael Mendonça França 提交于
Require yaml explicitly on #database_configuration
-