Sha256: 39f3a7d9bb7976b2528bbb1205c98ee6a7598764bb10d5c20cf4dae5d15dfa79
Contents?: true
Size: 366 Bytes
Versions: 1
Compression:
Stored size: 366 Bytes
Contents
class Ridgepole::Dumper def initialize(options = {}) @options = options end def dump stream = StringIO.new ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream) stream.string.lines.select {|line| line !~ /\A#/ && line !~ /\AActiveRecord::Schema\.define/ && line !~ /\Aend/ }.join.undent.strip end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ridgepole-0.0.1 | lib/ridgepole/dumper.rb |