Sha256: 5c6d2a10afa2935fe48d577de8d79f6e4ba0e2542263ab1aaa67866a322a0bf6
Contents?: true
Size: 737 Bytes
Versions: 21
Compression:
Stored size: 737 Bytes
Contents
# frozen_string_literal: true module NeetoCommonsBackend module SampleData module Common class LoaderService < Common::Base def process! return if skip? ActiveRecord::Base.descendants.map(&:reset_column_information) Rails.logger.debug { "\n#{'-' * 80}" } Rails.logger.debug "Loading sample data..." ActiveRecord::Base.logger.level = Logger::INFO load_sample_data! Rails.logger.debug { "#{'-' * 80}\n" } true end private def load_sample_data! ::SampleData::LoadersList.get.each do |loader_service| loader_service.new.load! end end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems