Sajeer
Sajeer

Reputation: 35

error while running rake db:migrate

when i try to migrate a single file using rake db:migrate:up VERSION=20121217051908 command error is shown. 'rake' is not recognized as an internal or external command, operable program or batch file.

then i tried using bundle exec rake db:migrate:up VERSION=20121217051908 again error is shown.

WARNING: 'task :t, arg, :needs => [deps]' is deprecated.  Please use 'task :t, [
args] => [deps]' instead.
    at D:/ROR/appmallserver/lib/tasks/download_apk.rake:5:in `block in <top (req
uired)>'
rake aborted!
D:/ROR/appmallserver/lib/tasks/handster.rake:69: invalid multibyte char (US-ASCI
I)
D:/ROR/appmallserver/lib/tasks/handster.rake:69: invalid multibyte char (US-ASCI
I)
D:/ROR/appmallserver/lib/tasks/handster.rake:69: syntax error, unexpected $end,
expecting keyword_then or ';' or '\n'
            unless node.text == "Next ??"
                                        ^

(See full trace by running task with --trace)

Upvotes: 0

Views: 185

Answers (1)

user24359
user24359

Reputation:

Looks like Ruby is choking on the ». Put this at the very top of handster.rake:

# encoding: utf-8

Upvotes: 1

Related Questions