lib/ar/enum/adapter.rb in ar-enum-0.3.0 vs lib/ar/enum/adapter.rb in ar-enum-0.4.0

- old
+ new

@@ -59,10 +59,11 @@ execute(sql) end def rename_enum_label(name, from, to) - sql = "ALTER TYPE #{name} RENAME VALUE #{quote(from.to_s)} TO #{quote(to.to_s)}" + sql = "ALTER TYPE #{name} RENAME VALUE #{quote(from.to_s)}" \ + " TO #{quote(to.to_s)}" execute(sql) end def drop_enum(name, options = {}) sql = "DROP TYPE IF EXISTS #{name}"