change_column :table_name, :column_name, ‘integer USING CAST(column_name AS integer)’
Source: PostgreSQL vs. Rails migration: How to change columns from string to integer – makandra dev
This is where diamonds exists
change_column :table_name, :column_name, ‘integer USING CAST(column_name AS integer)’
Source: PostgreSQL vs. Rails migration: How to change columns from string to integer – makandra dev
Recent Comments