Cleanup our migrations, replacing as much of our custom code and monkey patching with modern standard rails methods.
Add a postgress freetext index on the note comments, and enable note searching using freetext matching.