Sha256: 4dfa72126d25636a058ce8e3f735514d80e9dd68ab72d81bd00ed59bfb6e67ac
Contents?: true
Size: 682 Bytes
Versions: 22
Compression:
Stored size: 682 Bytes
Contents
# Copyright 2021 Google LLC # # Use of this source code is governed by an MIT-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/MIT. require "io/console" require_relative "../config/environment" class Application def self.run puts "" puts "Created database with the following tables:" sql = "SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_CATALOG='' AND TABLE_SCHEMA=''" tables = ActiveRecord::Base.connection.raw_connection.execute_query sql tables.rows.each do |row| puts row[:TABLE_NAME] end puts "" puts "Press any key to end the application" STDIN.getch end end Application.run
Version data entries
22 entries across 22 versions & 1 rubygems