I’d like to use migrations to add/remove/modify columns from a database.
Rails makes that relatively painless. One feature I don’t see is the
ability to comment on columns in the schema. How can I add a column
comment to a migration?
We’re using Oracle/PosgreSQL (and we’re thinking of adding SQL Server in
The SQL for adding a comment to a column is oddly enough the same for
all three it seems but I’d rather not take a chance.
COMMENT ON COLUMN table_name.column_name IS ‘Random Comment’;
Thanks in advance,