Namespace
Methods
S
T
Constants
CONNECTION_METHODS = %w[add_column remove_column rename_column add_index change_column rename_table column_exists? index_exists? add_reference add_belongs_to remove_reference remove_references remove_belongs_to]
 
Attributes
[R] connection
[R] table_name
Instance Public methods
setup()
# File activerecord/test/cases/migration/helper.rb, line 17
def setup
  super
  @connection = ActiveRecord::Base.connection
  connection.create_table :test_models do |t|
    t.timestamps null: true
  end

  TestModel.reset_column_information
end
teardown()
# File activerecord/test/cases/migration/helper.rb, line 27
def teardown
  super
  TestModel.reset_table_name
  TestModel.reset_sequence_name
  connection.drop_table :test_models rescue nil
end