diff options
author | Teddy Wing | 2017-04-29 19:13:48 +0200 |
---|---|---|
committer | Teddy Wing | 2017-04-29 19:15:46 +0200 |
commit | 9a5e4413a0776b79e90ab6a3e95ed9dea1eb7a1d (patch) | |
tree | 1f4a2d8cb8a47f064eef79c5ec6d519a52f14df6 /lib | |
parent | 1ede66205549e84c83e04e4173dab3b0d6906255 (diff) | |
download | dbshell-rails-9a5e4413a0776b79e90ab6a3e95ed9dea1eb7a1d.tar.bz2 |
dbshell.rake: Figure out how to get database connection info from Rails
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dbshell/rails/tasks/dbshell.rake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/dbshell/rails/tasks/dbshell.rake b/lib/dbshell/rails/tasks/dbshell.rake index 65b74a2..6a74c53 100644 --- a/lib/dbshell/rails/tasks/dbshell.rake +++ b/lib/dbshell/rails/tasks/dbshell.rake @@ -1,3 +1,6 @@ task :dbshell do - puts 'Hello World' +# {"default"=>{"adapter"=>"sqlite3", "pool"=>5, "timeout"=>5000}, "development"=>{"adapter"=>"sqlite3", "pool"=>5, "timeout"=>5000, "database"=>"db/development.sqlite3"}, "test"=>{"adapter"=>"sqlite3", "pool"=>5, "timeout"=>5000, "database"=>"db/test.sqlite3"}, "production"=>{"adapter"=>"sqlite3", "pool"=>5, "timeout"=>5000, "database"=>"db/production.sqlite3"}} + Rails.application.config.database_configuration + # system('bash') + exec('bash') end |