The class name CreateMyView isn't consistent with the migration file name, so I don't think it gets run.  And you redefined the class methods "up" and "down" twice, so only the last definition is in effect.

I've written a modified version of this migration that keeps all the essential SQL code but actually works.  I will simply commit it unless you think it should be previewed first.