Sha256: 641975a986beb5783bf0fdb3dc5f8cc4eed1a3e6cda80827b8edab8a53717cc4
Contents?: true
Size: 677 Bytes
Versions: 4
Compression:
Stored size: 677 Bytes
Contents
#!/usr/bin/env ruby require 'bundler/setup' require 'active_record' require 'rubypitaya' require 'rubypitaya/core/database_config' environment_name = ENV.fetch("RUBYPITAYA_ENV") { 'development' } database_config = DatabaseConfig.new(environment_name, Path::DATABASE_CONFIG_PATH) ActiveRecord::Base.establish_connection(database_config.connection_data) ActiveRecord::Base.logger = ActiveSupport::Logger.new(STDOUT) ActiveSupport::LogSubscriber.colorize_logging = true Gem.find_files('rubypitaya/**/*.rb').each do |path| require path unless path.end_with?('spec.rb') || path.include?('db/migrate') end require 'irb' IRB.start(__FILE__) ActiveRecord::Base.connection.close
Version data entries
4 entries across 4 versions & 1 rubygems