Class: ActiveRecord::SchemaDumper
- Inherits:
-
Object
- Object
- ActiveRecord::SchemaDumper
- Defined in:
- activerecord/lib/active_record/schema_dumper.rb
Overview
Active Record Schema Dumper
This class is used to dump the database schema for some connection to some output format (i.e., ActiveRecord::Schema).
Constant Summary
- @@ignore_tables =
[]
Class Method Summary (collapse)
Instance Method Summary (collapse)
Class Method Details
+ (Object) dump(connection = ActiveRecord::Base.connection, stream = STDOUT)
20 21 22 23 |
# File 'activerecord/lib/active_record/schema_dumper.rb', line 20 def self.dump(connection=ActiveRecord::Base.connection, stream=STDOUT) new(connection).dump(stream) stream end |
Instance Method Details
- (Object) dump(stream)
25 26 27 28 29 30 |
# File 'activerecord/lib/active_record/schema_dumper.rb', line 25 def dump(stream) header(stream) tables(stream) trailer(stream) stream end |