how to run schema.rb?

前端 未结 1 566
一整个雨季
一整个雨季 2021-02-07 23:24

I\'m trying to run db:migrate. This fails however because one of the tables that one of the migrations is trying to update does not exist. I searched the codebase and this table

相关标签:
1条回答
  • 2021-02-07 23:54

    Use the schema load task:

    rake db:schema:load
    

    From rake -T (expurgated version):

    rake db:schema:dump  # Create db/schema.rb file usable with any AR-supported DB
    rake db:schema:load  # Load schema.rb file into DB
    
    0 讨论(0)
提交回复
热议问题