Sha256: 73e9c67e4840befa9c04ee45b70ff773f322734cbd825fa1286b08616d41ef94

Contents?: true

Size: 309 Bytes

Versions: 18

Compression:

Stored size: 309 Bytes

Contents

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

  namespace :dev do
    desc "Sample data for local development environment"
    task prime: "db:setup" do
      include FactoryBot::Syntax::Methods

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

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
suspenders-20230113.0 templates/dev.rake
suspenders-1.56.1 templates/dev.rake
suspenders-1.55.1 templates/dev.rake
suspenders-1.55.0 templates/dev.rake
suspenders-1.54.1 templates/dev.rake
suspenders-1.54.0 templates/dev.rake
suspenders-1.53.0 templates/dev.rake
suspenders-1.52.0 templates/dev.rake
suspenders-1.51.0 templates/dev.rake
bulldozer-1.6.3 templates/dev.rake
bulldozer-1.6.2 templates/dev.rake
bulldozer-1.6.1 templates/dev.rake
bulldozer-1.6.0 templates/dev.rake
suspenders-1.50.0 templates/dev.rake
suspenders-1.49.0 templates/dev.rake
suspenders-1.48.0 templates/dev.rake
suspenders-1.47.0 templates/dev.rake
suspenders-1.46.0 templates/dev.rake