Sha256: c209e67a54896f58c184897cb17c1d6881136fd30890b21794409a1ab3eddbf3

Contents?: true

Size: 360 Bytes

Versions: 22

Compression:

Stored size: 360 Bytes

Contents

require "dm-core"

# only to please activerecord API used in database_cleaner/examples/features/step_definitions
# yes, i know that's lazy ...
require "dm-validations"
require "dm-aggregates"

DataMapper.setup(:default, "sqlite3::memory:")

class Widget
  include DataMapper::Resource
  property :id,   Serial
  property :name, String
end

Widget.auto_migrate!

Version data entries

22 entries across 22 versions & 11 rubygems

Version Path
HusseinMorsy-database_cleaner-0.2.2 examples/lib/datamapper.rb
adzap-database_cleaner-0.2.3 examples/lib/datamapper.rb
bmabey-database_cleaner-0.2.0 examples/lib/datamapper.rb
bmabey-database_cleaner-0.2.1 examples/lib/datamapper.rb
bmabey-database_cleaner-0.2.2 examples/lib/datamapper.rb
bmabey-database_cleaner-0.2.3 examples/lib/datamapper.rb
darrell-database_cleaner-0.2.3.2 examples/lib/datamapper.rb
yozhyk-database_cleaner-0.2.4 examples/lib/datamapper.rb
bitfluent-database_cleaner-0.5.2 examples/lib/datamapper_models.rb
database_cleaner-0.5.2 examples/lib/datamapper_models.rb
database_cleaner-0.5.1 examples/lib/datamapper_models.rb
jonrowe-database_cleaner-0.5.2 examples/lib/datamapper_models.rb
saimonmoore-database_cleaner-0.5.0 examples/lib/datamapper_models.rb
database_cleaner-0.5.0 examples/lib/datamapper_models.rb
database_cleaner-0.4.3 examples/lib/datamapper.rb
database_cleaner-0.4.2 examples/lib/datamapper.rb
tooky-database_cleaner-0.4.1 examples/lib/datamapper.rb
database_cleaner-0.4.1 examples/lib/datamapper.rb
database_cleaner-0.4.0 examples/lib/datamapper.rb
database_cleaner-0.3.0 examples/lib/datamapper.rb