Skip to content

Instantly share code, notes, and snippets.

@amitpatelx
Created May 23, 2016 08:01
Show Gist options
  • Save amitpatelx/8f5a32dbd607c14914c463dee408eac3 to your computer and use it in GitHub Desktop.
Save amitpatelx/8f5a32dbd607c14914c463dee408eac3 to your computer and use it in GitHub Desktop.
Override default primary key
class CreateContentUnits < ActiveRecord::Migration
def change
create_table :content_units, primary_key: :guoid do |t|
t.boolean :active, default: false
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment