123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::Migration::Current

Do not use. This class is for internal use only.

Overview

This must be defined before the inherited hook, below

Instance Method Summary

Instance Method Details

#change_table(table_name, **options)

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration.rb', line 588

def change_table(table_name, **options)
  if block_given?
    super { |t| yield compatible_table_definition(t) }
  else
    super
  end
end

#compatible_table_definition(t)

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration.rb', line 612

def compatible_table_definition(t)
  t
end

#create_join_table(table_1, table_2, **options)

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration.rb', line 596

def create_join_table(table_1, table_2, **options)
  if block_given?
    super { |t| yield compatible_table_definition(t) }
  else
    super
  end
end

#create_table(table_name, **options)

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration.rb', line 580

def create_table(table_name, **options)
  if block_given?
    super { |t| yield compatible_table_definition(t) }
  else
    super
  end
end

#drop_table(*table_names, **options)

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration.rb', line 604

def drop_table(*table_names, **options)
  if block_given?
    super { |t| yield compatible_table_definition(t) }
  else
    super
  end
end