1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases
Yves Senn 6eba8d27e6 rename_index: add the new index before removing the old one.
This prevents the following error when a MySQL index on a foreign key
column is renamed:

```
ActiveRecord::StatementInvalid: Mysql2::Error: Cannot drop index 'index_engines_on_car_id': needed in a foreign key constraint: DROP INDEX `index_engines_on_car_id` ON `engines`
```

refs: #13038.
2013-11-26 10:03:55 +01:00
..
adapters rename_index: add the new index before removing the old one. 2013-11-26 10:03:55 +01:00
associations Raise RecordNotDestroyed when children can't be replaced 2013-11-25 19:30:07 -02:00
attribute_methods
coders
connection_adapters
connection_specification
fixture_set
migration Remove more skip 2013-11-08 14:18:54 -02:00
relation Merge pull request #13029 from akshay-vishnoi/documentation 2013-11-25 00:47:59 -08:00
scoping Fix ActiveRecord::Relation#unscope 2013-11-20 22:23:16 +00:00
tasks require the files we test 2013-11-25 11:33:31 -08:00
validations Fix validation on uniqueness of empty association 2013-11-22 22:22:34 +04:00
adapter_test.rb Don't skip tests if we don't need to. 2013-11-08 13:59:07 -02:00
aggregations_test.rb
ar_schema_test.rb
associations_test.rb do is_a? tests on assignment so runtime is faster 2013-07-31 18:19:36 -07:00
attribute_methods_test.rb Merge pull request #9860 from wangjohn/update_attributes_throws_error_with_nil 2013-09-24 11:56:50 -03:00
autosave_association_test.rb Squashed commit of the following: 2013-10-01 15:40:40 -07:00
base_test.rb Don't skip tests if we don't need to. 2013-11-08 13:59:07 -02:00
batches_test.rb
binary_test.rb
bind_parameter_test.rb log bind variables after they were type casted. 2013-11-09 11:23:34 +01:00
calculations_test.rb Change test_registering_new_handlers and test_count_on_invalid_columns_raises 2013-08-02 05:55:31 +09:00
callbacks_test.rb
clone_test.rb
column_alias_test.rb
column_definition_test.rb
column_test.rb prevent global timezone state from leaking out of test cases. 2013-10-25 14:40:57 +02:00
connection_management_test.rb Don't skip tests if we don't need to. 2013-11-08 13:59:07 -02:00
connection_pool_test.rb
core_test.rb
counter_cache_test.rb
custom_locking_test.rb
database_statements_test.rb
date_time_test.rb prevent global timezone state from leaking out of test cases. 2013-10-25 14:40:57 +02:00
defaults_test.rb
dirty_test.rb prevent time_zone_aware_attributes test leak. follow-up to #12633. 2013-10-25 17:05:41 +02:00
disconnected_test.rb Don't skip tests if we don't need to. 2013-11-08 13:59:07 -02:00
dup_test.rb Don't need to check if the scope respond to call 2013-08-31 14:53:28 -03:00
enum_test.rb bring back constant to expose the enum mapping as HWIA. 2013-11-06 15:27:33 +01:00
explain_subscriber_test.rb
explain_test.rb
finder_respond_to_test.rb Avoid compiling regexs in AR::Base.respond_to? 2013-08-21 18:18:26 -07:00
finder_test.rb use complete Relation API and not only Model.all.merge!. 2013-11-09 22:02:46 +01:00
fixtures_test.rb Fix bad test order dependency between LoadAllFixturesTest#test_all_there and FoxyFixturesTest#test_ignores_belongs_to_symbols_if_association_and_foreign_key_are_named_the_same 2013-11-16 00:22:05 -08:00
forbidden_attributes_protection_test.rb Add regression test to #12343 2013-09-24 20:59:26 -03:00
habtm_destroy_order_test.rb
helper.rb Warnings removed for ruby trunk 2013-11-01 09:49:57 +01:00
hot_compatibility_test.rb
i18n_test.rb
inheritance_test.rb Port test from cf1904f to avoid future regression 2013-10-03 14:11:12 -04:00
integration_test.rb added one test case and example for ActiveRecord::Base.to_param method 2013-11-15 20:05:17 +05:30
invalid_connection_test.rb Changed message for Model.inspect 2013-11-09 20:57:09 +01:00
invalid_date_test.rb
invertible_migration_test.rb
json_serialization_test.rb
locking_test.rb Deprecate unused quoted_locking_column method. 2013-09-24 21:56:52 +09:00
log_subscriber_test.rb Don't skip tests if we don't need to. 2013-11-08 13:59:07 -02:00
migration_test.rb test should clean up after themselves 2013-11-15 14:36:15 -08:00
migrator_test.rb Revert "Used Yield instead of block.call" -- this causes all of atom_feed_helper_test.rb to fail with "SystemStackError: stack level too deep". 2013-11-14 15:31:27 -08:00
mixin_test.rb replace custom Time stubbing with travel and travel_to. 2013-11-21 17:29:53 +01:00
modules_test.rb add missing require 2013-10-02 17:04:02 -07:00
multiparameter_attributes_test.rb Don't skip tests if we don't need to. 2013-11-08 13:59:07 -02:00
multiple_db_test.rb
nested_attributes_test.rb
nested_attributes_with_callbacks_test.rb Use assert_not rather than refute 2013-08-12 15:21:21 +02:00
persistence_test.rb
pooled_connections_test.rb
primary_keys_test.rb Remove more skip 2013-11-08 14:18:54 -02:00
query_cache_test.rb
quoting_test.rb prevent global timezone state from leaking out of test cases. 2013-10-25 14:40:57 +02:00
readonly_test.rb
reaper_test.rb
reflection_test.rb scope_chain should not be mutated for other reflections 2013-10-14 11:59:59 -04:00
relation_test.rb Merge pull request #12129 from Empact/deprecate-array-bang-delegation 2013-09-12 21:36:00 -03:00
relations_test.rb move Relation#merge tests into separate file. 2013-11-13 17:41:20 +01:00
reload_models_test.rb
result_test.rb
sanitize_test.rb Process sub-query relation's binding values 2013-10-20 21:07:07 +03:00
schema_dumper_test.rb Don't skip tests if we don't need to. 2013-11-08 13:59:07 -02:00
serialization_test.rb
serialized_attribute_test.rb prevent global timezone state from leaking out of test cases. 2013-10-25 14:40:57 +02:00
statement_cache_test.rb
store_test.rb stored_attributes need to be specific to a subclass. 2013-10-25 08:35:35 +02:00
test_case.rb Do not count query for all_constraints and all_tab_cols in Oracle 2013-11-18 11:59:36 +09:00
timestamp_test.rb swap arguments for some assert_equal statements => expected, actual 2013-11-20 13:58:09 +01:00
transaction_callbacks_test.rb
transaction_isolation_test.rb Don't skip tests if we don't need to. 2013-11-08 13:59:07 -02:00
transactions_test.rb Ensure that a column added in a test is being removed after all 2013-11-13 19:21:40 +09:00
unconnected_test.rb
validations_repair_helper.rb
validations_test.rb
xml_serialization_test.rb prevent global timezone state from leaking out of test cases. 2013-10-25 14:40:57 +02:00
yaml_serialization_test.rb Add test for ActiveRecord::Relation YAML serialization, for #5303 issue 2013-11-03 21:35:44 +07:00