Sha256: 50e6ca30b3cfad93431d868f8ee57375c9d40e2ed3e94fdfe29d750dd03684c1
Contents?: true
Size: 493 Bytes
Versions: 6
Compression:
Stored size: 493 Bytes
Contents
ActiveRecord::Base.configurations = YAML::load( IO.read( File.dirname(__FILE__) + '/../spec/database.yml' ) ) ActiveRecord::Base.establish_connection( 'test' ) ActiveRecord::Schema.define :version => 1 do create_table "users", :force => true do |t| t.string "name", :limit => 50 t.string "raw_ssn", :limit => 9 end create_table "people", :force => true do |t| t.string "name", :limit => 50 end end class User < ActiveRecord::Base has_ssn :ssn end
Version data entries
6 entries across 6 versions & 1 rubygems