Sha256: 0b021803d21b484925962b7a04f6237a8d4830f7f941f662da0c407eda5e439e
Contents?: true
Size: 588 Bytes
Versions: 11
Compression:
Stored size: 588 Bytes
Contents
require 'machinist/active_record' # takes care of # Validation failed: Email has already been taken (ActiveRecord::RecordInvalid) Machinist.configure do |config| config.cache_objects = false end Admin.blueprint do email { 'admin@example.com' } password { 'password' } password_confirmation { 'password' } end Settings.blueprint do # Attributes here end Entry.blueprint do title { Faker::Lorem.words.to_s } body { Faker::Lorem.paragraph } published_at { Time.now } end Entry.blueprint(:published) do draft { false } end Comment.blueprint do # Attributes here end
Version data entries
11 entries across 7 versions & 1 rubygems