Skip to content

Commit 98f1090

Browse files
authored
rails runner instead of rails c
rails console prints some tty-related errors when not connected to a terminal (such as when running in a git hook).
1 parent 3170c5c commit 98f1090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/git_rails

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ if [ ! -z "$migrations" ]; then
155155

156156
# RUN THE MIGRATIONS (AND TEST PREPARE)
157157
{
158-
echo "$migrate_commands" | bundle exec rails c
158+
echo "$migrate_commands" | bundle exec rails runner /dev/stdin
159159
} > $out_target
160160

161161
# CLEAN UP DOWN MIGRATIONS

0 commit comments

Comments
 (0)