简体   繁体   中英

After rake db:migrate my 'structure.sql' became different from the git version

Differences are of two kinds:

  1. resource_id character varying NOT NULL instead of resource_id character varying(255) NOT NULL
  2. created_at timestamp without time zone instead of created_at timestamp without time zone NOT NULL

Rails 4.2, PostgreSQL Version 9.4.4.1

What should I do in this situation?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM