Sha256: 9cadd457e01170a5d572d5ce75a2a2d71407f1fc37c8314b4f7446051c6d1984

Contents?: true

Size: 303 Bytes

Versions: 47

Compression:

Stored size: 303 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

      # create(:user, email: "user@example.com", password: "password")
    end
  end
end

Version data entries

47 entries across 47 versions & 9 rubygems

Version Path
anadea-spark-0.5.0 templates/tasks/development_seeds.rake
anadea-spark-0.4.4 templates/tasks/development_seeds.rake
bowties-2.0.0 templates/development_seeds.rb
welaika-suspenders-2.13.0 templates/development_seeds.rb
welaika-suspenders-2.12.0 templates/development_seeds.rb
slining-1.1.0 templates/development_seeds.rb
anadea-spark-0.4.3 templates/tasks/development_seeds.rake
suspenders-1.29.0 templates/development_seeds.rb
slining-1.0.1 templates/development_seeds.rb
slining-1.0.0 templates/development_seeds.rb
anadea-spark-0.4.2 templates/tasks/development_seeds.rake
stoker-1.0.0.pre6 templates/development_seeds.rb
welaika-suspenders-2.11.0 templates/development_seeds.rb
anadea-spark-0.4.1 templates/tasks/development_seeds.rake
stoker-1.0.0.pre5 templates/development_seeds.rb
stoker-1.0.0.pre4 templates/development_seeds.rb
stoker-1.0.0.pre3 templates/development_seeds.rb
stoker-1.0.0.pre2 templates/development_seeds.rb
anadea-spark-0.4.0 templates/tasks/development_seeds.rake
suspenders-1.28.0 templates/development_seeds.rb