lib/torque/postgresql/adapter/schema_definitions.rb in torque-postgresql-0.2.16 vs lib/torque/postgresql/adapter/schema_definitions.rb in torque-postgresql-1.0.0

- old
+ new

@@ -18,9 +18,16 @@ type = options.fetch(:subtype, name) column(name, type, options) end end + # Creates a column with an enum array type, needing to specify the + # subtype, which is basically the name of the type defined prior + # creating the column + def enum_set(*args, **options) + super(*args, **options.merge(array: true)) + end + end module TableDefinition include ColumnMethods