use normal sql with rails migrations code example Example 1: ruby on rails db migrate rails db:migrate Example 2: see migration history rails rake db:migrate:status