Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
digibib
counterstat
Commits
92ec7c77
Commit
92ec7c77
authored
Jun 03, 2018
by
Hugo
Browse files
Add pry and irb consoles
parent
21629269
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rakefile
View file @
92ec7c77
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment