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.js CHANGED
@@ -179,7 +179,9 @@ const encodeColumnDefault = (def, values, column) => {
179
179
  if (orchidCore.isRawSQL(def)) {
180
180
  return def.toSQL({ values });
181
181
  } else {
182
- return pqb.escapeForMigration((column == null ? void 0 : column.encodeFn) ? column.encodeFn(def) : def);
182
+ return pqb.escapeForMigration(
183
+ (column == null ? void 0 : column.data.encode) ? column.data.encode(def) : def
184
+ );
183
185
  }
184
186
  }
185
187
  return null;