Skip to content

Instantly share code, notes, and snippets.

View checkbutton's full-sized avatar

Stefan Rothlehner checkbutton

  • Berlin, Germany
View GitHub Profile
@checkbutton
checkbutton / rails_postgres_enum.rb
Created March 21, 2016 20:59
Support for PostgreSQL enum types in Rails 4.2 (including schema dump)
module ActiveRecord
class SchemaDumper
def dump(stream)
header(stream)
extensions(stream)
enums(stream)
tables(stream)
trailer(stream)
stream
end