vendredi 14 août 2015

Rails migrate decimal type but text type in schema?

This may be a profoundly stupid question but I migrated the following:

change_column :prints, :price, :decimal, precision: 5, scale: 2

but when I did a schema dump, found that the column is a text field. Is this correct or did I do something wrong?

Aucun commentaire:

Enregistrer un commentaire