class TokyoMetro::Rake::Rails::Deploy::Heroku::SchemaFile
Public Instance Methods
active_record_definition_body()
click to toggle source
# File lib/tokyo_metro/rake/rails/deploy/heroku/schema_file.rb, line 3 def active_record_definition_body @rows[ ( index_where_active_record_definition_begins + 1 )..( index_where_active_record_definition_ends ) ] end
Private Instance Methods
index_where_active_record_definition_begins()
click to toggle source
# File lib/tokyo_metro/rake/rails/deploy/heroku/schema_file.rb, line 9 def index_where_active_record_definition_begins @rows.index { | row | /\AActiveRecord::Schema\.define\(version: \d{14}\) do/ === row } end
index_where_active_record_definition_ends()
click to toggle source
# File lib/tokyo_metro/rake/rails/deploy/heroku/schema_file.rb, line 13 def index_where_active_record_definition_ends ( @rows.length - 1 ) - 1 end