I have to create a Rails migration which creates many triggers and stored procedures.
Normally one would do that using the execute
method, but because of the size of the statements, I'd rather keep them in an external file and reference it from the migration.
How can I do that? Is it even possible?