Get schema_migrations table name from ActiveRecord

This makes ActiveRecord responsible for determining the table name to
handle subtle nuisances like table_name_prefix and table_name_suffix.