Sha256: ddf4125fc674f914222cbbfaff047f3f895ef8cc56f650589abba8f5bd130deb
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
class TokyoMetro::Rake::Rails::Deploy::Heroku::SchemaFile < TokyoMetro::Rake::Rails::Deploy::Heroku::FileInfo def active_record_definition_body @rows[ ( index_where_active_record_definition_begins + 1 )..( index_where_active_record_definition_ends ) ] end private def index_where_active_record_definition_begins @rows.index { | row | /\AActiveRecord::Schema\.define\(version: \d{14}\) do/ === row } end def index_where_active_record_definition_ends ( @rows.length - 1 ) - 1 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tokyo_metro-0.10.1 | lib/tokyo_metro/rake/rails/deploy/heroku/schema_file.rb |