I try to make automatic migrations directly from ruby script without
using rake and console commands.
But I can’t retrieve current database schema version.
I have tried to use ActiveRecord::Migration.version and @version
property in a child of ActiveRecord::Migration. The result was nil at
How can I do this?