16990
`heroku ran rake db:migrate`を実行すると下記のようなエラーがでます。  
`database.yml`に別に異常はないようですがどうすればいいのでしょうか。教えて下さい。

```

    rake aborted!
    YAML syntax error occurred while parsing /app/config/database.yml. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Error: (<unknown>): did not find expected key while parsing a block mapping at line 1 column 1
    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/application/configuration.rb:115:in `rescue in database_configuration'
    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/application/configuration.rb:98:in `database_configuration'
    /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/railtie.rb:117:in `block (2 levels) in <class:Railtie>'
    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/lazy_load_hooks.rb:44:in `each'
    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
    /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/base.rb:316:in `<module:ActiveRecord>'
    /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/base.rb:26:in `<top (required)>'
    /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/tasks/mysql_database_tasks.rb:8:in `<class:MySQLDatabaseTasks>'
    /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/tasks/mysql_database_tasks.rb:3:in `<module:Tasks>'
    /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/tasks/mysql_database_tasks.rb:2:in `<module:ActiveRecord>'
    /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/tasks/mysql_database_tasks.rb:1:in `<top (required)>'
    /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/tasks/database_tasks.rb:50:in `<module:DatabaseTasks>'
    /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/tasks/database_tasks.rb:37:in `<module:Tasks>'
    /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/tasks/database_tasks.rb:4:in `<module:ActiveRecord>'
    /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/tasks/database_tasks.rb:3:in `<top (required)>'
    /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/railtie.rb:41:in `block (3 levels) in <class:Railtie>'
    Tasks: TOP => db:migrate => db:load_config(See full trace by running task with --trace)
    
```
CC BY-SA 3.0
2015-09-25T05:36:05.893
16916
2015-10-28T11:37:59.227
2015-09-25T06:52:26.057
7676
12443
question
ruby-on-rails heroku
heroku run rake db:migrateを実行すると下記のようなsynatax errorがでる。
> YAML syntax error occurred while parsing /app/config/database.yml. Please
> note that YAML must be consistently indented using spaces. Tabs are not
> allowed.

エラー文の2行目にこう書いてあるということは、スペースの代わりにタブが使われているということではないですか？

> Tabs are not allowed.

こう言っているということはタブが使われていると思うので、タブをスペースに変換する必要があると思います。
CC BY-SA 3.0
2015-09-27T07:15:56.910
16990
2015-09-27T07:15:56.910
7655
16916
answer