在 rake db:migrate 之后,我的'structure.sql'变得与 git 版本不同



区别有两种:

  1. resource_id character varying NOT NULL而不是resource_id character varying(255) NOT NULL
  2. created_at timestamp without time zone而不是created_at timestamp without time zone NOT NULL

Rails 4.2, PostgreSQL Version 9.4.4.1

在这种情况下我该怎么办?

是的,原因是:不同的PostgreSQL版本。

最新更新