Invoking ActiveRecord::Migration functions in command line
If you need for some weird reason, to run migration commands in your rails console, just do the following:
ActiveRecord::Migration.add_index :table, :col, name: 'col_index'
If you need for some weird reason, to run migration commands in your rails console, just do the following:
ActiveRecord::Migration.add_index :table, :col, name: 'col_index'