Sha256: 029d5a8890a875aecc3c22d798b05db37290c7ce4ae440d60230b33dd3a1a11b
Contents?: true
Size: 376 Bytes
Versions: 6
Compression:
Stored size: 376 Bytes
Contents
class BlankScenario < Scenarios::Base def load table_names.each do |table| blast_table(table) end end def table_names self.class.table_names end def self.table_names @table_names ||= begin schema = (open(RAILS_ROOT + '/db/schema.rb') { |f| f.read } rescue '') schema.grep(/create_table\s+(['"])(.+?)\1/m) { $2 } end end end
Version data entries
6 entries across 6 versions & 1 rubygems