Methods
- S
- T
-
- test_add_belongs_to_works_like_add_references,
- test_change_changes_column,
- test_change_changes_column_with_options,
- test_change_default_changes_column,
- test_column_creates_column,
- test_column_creates_column_with_options,
- test_index_creates_index,
- test_index_creates_index_with_options,
- test_index_exists,
- test_index_exists_with_options,
- test_integer_creates_integer_column,
- test_references_column_type_adds_id,
- test_references_column_type_with_polymorphic_adds_type,
- test_references_column_type_with_polymorphic_and_options_null_is_false_adds_table_flag,
- test_references_column_type_with_polymorphic_and_type,
- test_remove_belongs_to_works_like_remove_references,
- test_remove_drops_multiple_columns,
- test_remove_drops_single_column,
- test_remove_index_removes_index_with_options,
- test_remove_references_column_type_removes_id,
- test_remove_references_column_type_with_polymorphic_and_options_null_is_false_removes_table_flag,
- test_remove_references_column_type_with_polymorphic_and_type,
- test_remove_references_column_type_with_polymorphic_removes_type,
- test_remove_timestamps_creates_updated_at_and_created_at,
- test_rename_index_renames_index,
- test_rename_renames_column,
- test_string_creates_string_column,
- test_table_name_set,
- test_timestamps_creates_updated_at_and_created_at
- W
Instance Public methods
setup()
Link
test_add_belongs_to_works_like_add_references()
Link
test_change_changes_column()
Link
test_change_changes_column_with_options()
Link
test_change_default_changes_column()
Link
test_column_creates_column()
Link
test_column_creates_column_with_options()
Link
test_index_creates_index()
Link
test_index_creates_index_with_options()
Link
test_index_exists()
Link
test_index_exists_with_options()
Link
test_integer_creates_integer_column()
Link
# File activerecord/test/cases/migration/change_table_test.rb, line 103 def test_integer_creates_integer_column with_change_table do |t| @connection.expect :add_column, nil, [:delete_me, :foo, :integer, {}] @connection.expect :add_column, nil, [:delete_me, :bar, :integer, {}] t.integer :foo, :bar end end
test_references_column_type_adds_id()
Link
test_references_column_type_with_polymorphic_adds_type()
Link
# File activerecord/test/cases/migration/change_table_test.rb, line 47 def test_references_column_type_with_polymorphic_adds_type with_change_table do |t| @connection.expect :add_reference, nil, [:delete_me, :taggable, polymorphic: true] t.references :taggable, polymorphic: true end end
test_references_column_type_with_polymorphic_and_options_null_is_false_adds_table_flag()
Link
# File activerecord/test/cases/migration/change_table_test.rb, line 61 def test_references_column_type_with_polymorphic_and_options_null_is_false_adds_table_flag with_change_table do |t| @connection.expect :add_reference, nil, [:delete_me, :taggable, polymorphic: true, null: false] t.references :taggable, polymorphic: true, null: false end end
test_references_column_type_with_polymorphic_and_type()
Link
# File activerecord/test/cases/migration/change_table_test.rb, line 75 def test_references_column_type_with_polymorphic_and_type with_change_table do |t| @connection.expect :add_reference, nil, [:delete_me, :taggable, polymorphic: true, type: :string] t.references :taggable, polymorphic: true, type: :string end end
test_remove_belongs_to_works_like_remove_references()
Link
test_remove_drops_multiple_columns()
Link
test_remove_drops_single_column()
Link
test_remove_index_removes_index_with_options()
Link
test_remove_references_column_type_removes_id()
Link
test_remove_references_column_type_with_polymorphic_and_options_null_is_false_removes_table_flag()
Link
# File activerecord/test/cases/migration/change_table_test.rb, line 68 def test_remove_references_column_type_with_polymorphic_and_options_null_is_false_removes_table_flag with_change_table do |t| @connection.expect :remove_reference, nil, [:delete_me, :taggable, polymorphic: true, null: false] t.remove_references :taggable, polymorphic: true, null: false end end
test_remove_references_column_type_with_polymorphic_and_type()
Link
# File activerecord/test/cases/migration/change_table_test.rb, line 82 def test_remove_references_column_type_with_polymorphic_and_type with_change_table do |t| @connection.expect :remove_reference, nil, [:delete_me, :taggable, polymorphic: true, type: :string] t.remove_references :taggable, polymorphic: true, type: :string end end
test_remove_references_column_type_with_polymorphic_removes_type()
Link
# File activerecord/test/cases/migration/change_table_test.rb, line 54 def test_remove_references_column_type_with_polymorphic_removes_type with_change_table do |t| @connection.expect :remove_reference, nil, [:delete_me, :taggable, polymorphic: true] t.remove_references :taggable, polymorphic: true end end
test_remove_timestamps_creates_updated_at_and_created_at()
Link
test_rename_index_renames_index()
Link
test_rename_renames_column()
Link
test_string_creates_string_column()
Link
# File activerecord/test/cases/migration/change_table_test.rb, line 111 def test_string_creates_string_column with_change_table do |t| @connection.expect :add_column, nil, [:delete_me, :foo, :string, {}] @connection.expect :add_column, nil, [:delete_me, :bar, :string, {}] t.string :foo, :bar end end
test_table_name_set()
Link
test_timestamps_creates_updated_at_and_created_at()
Link