开发者

Rails doesn't migrate one table out of 3 in production mode, runs fine in development

开发者 https://www.devze.com 2022-12-14 11:24 出处:网络
I have three tables: Project, Tasks, and Tags. When m开发者_运维百科igrate the databases in development mode, everything works.

I have three tables: Project, Tasks, and Tags. When m开发者_运维百科igrate the databases in development mode, everything works.

But when I run the rake db schema load command for production mode, it isn't migrating the "Tasks" table, hence the app doesn't work.

I looked at my production.log file, but there isn't anything there.

What am I missing here?

You can fork it over from github if you prefer: http://github.com/senthilnambi/MultipleM

I'm using sqlite3, btw.

Thanks


Had a quick look in your schema.rb file and can see this line:

# Could not dump table "tasks" because of following StandardError
# Unknown type 'body' for column 'reason'

Looks like you need to recreate your schema file from the migrations to remove this error.

0

精彩评论

暂无评论...
验证码 换一张
取 消