Class: MigrationData::ActiveRecord::SchemaDumper

Inherits:
ActiveRecord::SchemaDumper
  • Object
show all
Defined in:
lib/migration_data/active_record/schema_dumper.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.dump(connection = ::ActiveRecord::Base.connection, stream = StringIO.new, config = ::ActiveRecord::Base) ⇒ Object



4
5
6
7
# File 'lib/migration_data/active_record/schema_dumper.rb', line 4

def self.dump(connection=::ActiveRecord::Base.connection, stream=StringIO.new, config = ::ActiveRecord::Base)
  new(connection, generate_options(config)).dump(stream)
  stream
end

Instance Method Details

#dump(stream) ⇒ Object



9
10
11
12
13
# File 'lib/migration_data/active_record/schema_dumper.rb', line 9

def dump(stream)
  extensions(stream)
  tables(stream)
  stream
end