I have this as a migration :
def up
connection.execute(%q{
alter table enterprise_members
alter column sso_id
type string using cast(sso_id as string)
})
end
Where I am simply trying to convert an integer into a string. But when run, it returns :
PG::UndefinedObject: ERROR: type "string" does not exist
:
alter table enterprise_members
alter column sso_id
type string using cast(sso_id as string)
Is it because I'm trying to cast it? How do I fix this?