Sha256: 87361fd71af7c27759828a031ac6ac261c451b971c8f8aa02eb09f5366175ff4
Contents?: true
Size: 345 Bytes
Versions: 3
Compression:
Stored size: 345 Bytes
Contents
# encoding: utf-8 require "rango" Rango.boot Project.import("models.rb") Project.logger.debug("Migrating Database ...") DataMapper.auto_migrate! Project.logger.debug("Creating posts ...") posts = [ ["This is my first post!"], ["This is my second post!"], ["This is my third post!"]] posts.each do |body| Post.create(body: body) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rango-0.0.6 | examples/twitter/factories.rb |
rango-0.1.pre | examples/twitter/factories.rb |
rango-0.0.4 | examples/twitter/factories.rb |