문제

I have a strange problem with my schema file. Recently I accidently saw that there is a column in one table, that doesn't exist in a database. It looks like this

im mysql console

enter image description here

in rails console

enter image description here

so clearly there 6 columns besides the id column. but now in my db/schema file there is also a 'phone' column.

enter image description here

How is it possible? And how to delete this column from schema file??

도움이 되었습니까?

해결책

This might fix your schema.rb file:

$ rake db:schema:dump
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top