I have some nasty looking sql in a migration. I can make it more readable by first creating some views, populating my new table from cleaner SQL that the views make possible, then drop the views.
I don't think I've seen this done before in a single migration. Is it a bad idea or bad practice?