Sha256: c1c8a32fe8b17065d71a4cd01d73ddb13365925b890587fcb4ec1fb8dbd03e75

Contents?: true

Size: 316 Bytes

Versions: 6

Compression:

Stored size: 316 Bytes

Contents

if Rails.env.development? || Rails.env.test?
  require "factory_girl"

  namespace :dev do
    desc "Seed data for development environment"
    task prime: "db:setup" do
      include FactoryGirl::Syntax::Methods

      Admin.create!(name: 'Admin', email: 'user@example.com', password: 'password')
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
chr-0.4.14 templates/dev.rake
chr-0.4.13 templates/development_seeds.rb
chr-0.4.12 templates/development_seeds.rb
chr-0.4.11 templates/development_seeds.rb
chr-0.4.10 templates/development_seeds.rb
chr-0.4.9 templates/development_seeds.rb