lib/torque/postgresql/adapter/schema_dumper.rb in torque-postgresql-0.2.12 vs lib/torque/postgresql/adapter/schema_dumper.rb in torque-postgresql-0.2.13

- old
+ new

@@ -2,12 +2,14 @@ module PostgreSQL module Adapter module ColumnDumper # Adds +:subtype+ as a valid migration key - def migration_keys - super + [:subtype] + unless Torque::PostgreSQL::AR521 + def migration_keys + super + [:subtype] + end end # Adds +:subtype+ option to the default set def prepare_column_options(column) spec = super @@ -20,10 +22,10 @@ end private def schema_subtype(column) - column.sql_type.to_sym.inspect if [:enum].include? column.type + column.sql_type.to_sym.inspect if column.type == :enum end end end end