Adds helpers to migrations and dumps check constraints to schema.rb