lfittl / activerecord-clean-db-structure

Automatic cleanup for the Rails db/structure.sql file (ActiveRecord/PostgreSQL)
BSD 3-Clause "New" or "Revised" License
146 stars 36 forks source link

pg 10.x adds AS Integer to structure.sql format #9

Closed woodhull closed 7 years ago

woodhull commented 7 years ago

This updates the regex to match the pg 10.x format which includes AS integer for sequences.

Should still be backwards compatible with 9.x which does not specify AS integer.

lfittl commented 7 years ago

@woodhull Thanks for the contribution!