Sha256: 375011bc4e893b28098e2d62e59eb2b6339dcb138131122aca38900a13f6c06f
Contents?: true
Size: 565 Bytes
Versions: 2
Compression:
Stored size: 565 Bytes
Contents
require 'spec_helper' require_relative '../lib/schemap' describe Schemap, '#generate_schema' end # default to default schema location # error if no schema # describe Schemap::SchemaParser, '.replicate' do # it 'maps tables to associations and attributes' do # end # end # db = ActiveRecord::Base.connection # db.tables.map do |table| # {table => # {attributes: # (db.columns(table).map(&:name)), # associations: # table.classify.constantize.reflections.map { |r| # r[1].table_name # } # } # } # end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
schemap-0.0.2 | spec/schemap_spec.rb |
schemap-0.0.1 | spec/schemap_spec.rb |