Sha256: 5b21bdcee887035844462267363cdde7c49b22b40615416b230a85515b894d27
Contents?: true
Size: 632 Bytes
Versions: 65
Compression:
Stored size: 632 Bytes
Contents
# frozen_string_literal: true require "csv" require_relative "./seeds/seeds_helper.rb" def log(msg, type: :full) case type when :full print "-----> #{msg}" if block_given? ms = Benchmark.ms { yield } milliseconds = "#{ms.to_i}ms" print "\r-----> #{milliseconds.ljust(8, ' ')} #{msg}" end print "\n" when :sub puts " #{msg}" else raise "Unknown type #{type}" end end PaperTrail.enabled = false # Seed the database with data common to all installations. # Site specific data should be seeded from the host application. require_relative "./seeds/default/seeds.rb"
Version data entries
65 entries across 65 versions & 1 rubygems