views:

6

answers:

1

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;"

A: 

Use the SQL execute("CREATE LANGUAGE plpgsql") instead, and put this statement in your standard migration.

Arsen7