If i am gonna use postgres triggers in rails app, i can use execute { create triggger } for creating trigger in migration file. But where am i suppose to write these lines of "createlang plpgsql databasename;"
views:
6answers:
1
A:
Use the SQL execute("CREATE LANGUAGE plpgsql") instead, and put this statement in your standard migration.
Arsen7
2010-10-22 13:44:57