Sha256: cb4cf71f95f1e4542701b56cc4bdb8d70cd009d58aac12dc0258e0a6a1d1c79c
Contents?: true
Size: 399 Bytes
Versions: 3
Compression:
Stored size: 399 Bytes
Contents
class Division include DataMapper::Resource property :id, Serial property :created_at, DateTime property :updated_at, DateTime property :league_id, Integer, :nullable => false, :index => true property :name, String, :nullable => false, :index => true belongs_to :league has n, :teams end Division.fixture {{ :league_id => /\d{1,5}/.gen, :name => /\w{5,10}/.gen.capitalize, }}
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sferik-merb-admin-0.3.2 | spec/fixtures/division_fixture.rb |
sferik-merb-admin-0.3.3 | spec/fixtures/division_fixture.rb |
sferik-merb-admin-0.3.4 | spec/fixtures/division_fixture.rb |