Methods
- S
- T
-
- test_add_belongs_to_alias,
- test_creates_named_index,
- test_creates_polymorphic_index,
- test_creates_reference_id_column,
- test_creates_reference_id_index,
- test_creates_reference_id_with_specified_type,
- test_creates_reference_type_column,
- test_creates_reference_type_column_with_default,
- test_deletes_polymorphic_index,
- test_deletes_reference_id_column,
- test_deletes_reference_id_index,
- test_deletes_reference_type_column,
- test_does_not_create_reference_id_index,
- test_does_not_create_reference_type_column,
- test_does_not_delete_reference_type_column,
- test_remove_belongs_to_alias
Included Modules
Instance Public methods
setup()
Link
test_add_belongs_to_alias()
Link
test_creates_named_index()
Link
test_creates_polymorphic_index()
Link
test_creates_reference_id_column()
Link
test_creates_reference_id_index()
Link
test_creates_reference_id_with_specified_type()
Link
test_creates_reference_type_column()
Link
test_creates_reference_type_column_with_default()
Link
# File activerecord/test/cases/migration/references_statements_test.rb, line 48 def test_creates_reference_type_column_with_default add_reference table_name, :taggable, polymorphic: { default: 'Photo' }, index: true assert column_exists?(table_name, :taggable_type, :string, default: 'Photo') end
test_deletes_polymorphic_index()
Link
# File activerecord/test/cases/migration/references_statements_test.rb, line 89 def test_deletes_polymorphic_index with_polymorphic_column do remove_reference table_name, :supplier, polymorphic: true assert_not index_exists?(table_name, [:supplier_id, :supplier_type]) end end
test_deletes_reference_id_column()
Link
test_deletes_reference_id_index()
Link
test_deletes_reference_type_column()
Link
test_does_not_create_reference_id_index()
Link
test_does_not_create_reference_type_column()
Link
test_does_not_delete_reference_type_column()
Link
# File activerecord/test/cases/migration/references_statements_test.rb, line 73 def test_does_not_delete_reference_type_column with_polymorphic_column do remove_reference table_name, :supplier assert_not column_exists?(table_name, :supplier_id, :integer) assert column_exists?(table_name, :supplier_type, :string) end end