Skip to content

Instantly share code, notes, and snippets.

@smathy
Created August 13, 2015 23:43
Show Gist options
  • Save smathy/1680d13acecb92b501c0 to your computer and use it in GitHub Desktop.
Save smathy/1680d13acecb92b501c0 to your computer and use it in GitHub Desktop.
class MyThing < ActiveRecord::Migration
def create_table table_name, options={}
super table_name, options.merge(primary_key: :not_id)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment