rake-db 2.22.45 → 2.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -177,7 +177,9 @@ const encodeColumnDefault = (def, values, column) => {
177
177
  if (isRawSQL(def)) {
178
178
  return def.toSQL({ values });
179
179
  } else {
180
- return escapeForMigration((column == null ? void 0 : column.encodeFn) ? column.encodeFn(def) : def);
180
+ return escapeForMigration(
181
+ (column == null ? void 0 : column.data.encode) ? column.data.encode(def) : def
182
+ );
181
183
  }
182
184
  }
183
185
  return null;