Optimized migrations for performance
Created by: iarro
Migrations are slow due to many 'alter table' queries, which can be a part of 'create table' statement instead. Typically, 'add constraint' query. Move these queries to 'create table' statements improves time of migrations significantly.