Commit 92ec7c77 authored by Hugo's avatar Hugo
Browse files

Add pry and irb consoles

parent 21629269
require "active_record"
require "pry"
require_relative "./counterstat"
require_relative "./settings"
task :irb do
require 'irb'
require 'irb/completion'
ActiveRecord::Base.establish_connection(Settings::DB)
ARGV.clear
IRB.start
end
task :console do
ActiveRecord::Base.establish_connection(Settings::DB)
binding.pry
end
namespace :db do
desc "Create the database"
......@@ -70,4 +88,3 @@ end
abort # needed stop other tasks
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment