diff options
Diffstat (limited to 'activerecord/test/cases/migration/change_schema_test.rb')
-rw-r--r-- | activerecord/test/cases/migration/change_schema_test.rb | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/activerecord/test/cases/migration/change_schema_test.rb b/activerecord/test/cases/migration/change_schema_test.rb index f8eedc712f..f0b1f74bd3 100644 --- a/activerecord/test/cases/migration/change_schema_test.rb +++ b/activerecord/test/cases/migration/change_schema_test.rb @@ -17,45 +17,6 @@ module ActiveRecord ActiveRecord::Base.primary_key_prefix_type = nil end - def test_index_exists - connection.create_table :testings do |t| - t.column :foo, :string, :limit => 100 - t.column :bar, :string, :limit => 100 - end - connection.add_index :testings, :foo - - assert connection.index_exists?(:testings, :foo) - assert !connection.index_exists?(:testings, :bar) - end - - def test_index_exists_on_multiple_columns - connection.create_table :testings do |t| - t.column :foo, :string, :limit => 100 - t.column :bar, :string, :limit => 100 - end - connection.add_index :testings, [:foo, :bar] - - assert connection.index_exists?(:testings, [:foo, :bar]) - end - - def test_unique_index_exists - connection.create_table :testings do |t| - t.column :foo, :string, :limit => 100 - end - connection.add_index :testings, :foo, :unique => true - - assert connection.index_exists?(:testings, :foo, :unique => true) - end - - def test_named_index_exists - connection.create_table :testings do |t| - t.column :foo, :string, :limit => 100 - end - connection.add_index :testings, :foo, :name => "custom_index_name" - - assert connection.index_exists?(:testings, :foo, :name => "custom_index_name") - end - def test_create_table_without_id testing_table_with_only_foo_attribute do assert_equal connection.columns(:testings).size, 1 @@ -212,7 +173,6 @@ module ActiveRecord skip "not supported on #{connection.class}" end - connection.create_table :testings do |t| t.column :foo, :string end |