Skip to content

Instantly share code, notes, and snippets.

@tcnksm
Created October 31, 2013 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcnksm/7247759 to your computer and use it in GitHub Desktop.
Save tcnksm/7247759 to your computer and use it in GitHub Desktop.
Add index by ActiveRecord::Migration
class Addindex < ActiveRecord::Migration
def self.up
add_index :a_table, :name
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment