[arvados-dev] Heads up: API server schema changes

Brett Smith brett at curoverse.com
Mon Jul 14 13:41:27 EDT 2014


Everyone,

I just merged 3113-qsequence-serial, which uses a PostgreSQL sequence to
efficiently allocate monotonically increasing qsequence values to new
job tasks.

Because sequences are specific to PostgreSQL, this required changing the
way Rails dumps the API server's database schema.
|config/application.rb| now specifies
|config.active_record.schema_format = :sql|. The schema has moved from
|db/schema.rb| to |db/structure.sql|, which is a more literal SQL dump. 
You still write database migrations the same way, and when you do,
you'll push changes to this file just like we've done with
|db/schema.rb| in the past.

Let me know if you have any questions about this.

Thanks,

-- 
Brett Smith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.arvados.org/pipermail/arvados-dev/attachments/20140714/1a0f6215/attachment.html>


More information about the arvados-dev mailing list