Rails Executing migration ArgumentError

后端 未结 2 1582
眼角桃花
眼角桃花 2021-01-24 18:37

I\'m having a strange problem executing rake db:migrate

== 20141127213559 CreateMovies: migrating =====================================
-- create_table(:movies)         


        
2条回答
  •  借酒劲吻你
    2021-01-24 19:04

    Maybe you should execute this after create movies table:

    generate migration AddFieldsToMovies newfield:type
    

    This generates the correct migration, see this:

    http://edgeguides.rubyonrails.org/active_record_migrations.html#changing-tables

提交回复
热议问题