Created
May 23, 2016 08:01
-
-
Save amitpatelx/8f5a32dbd607c14914c463dee408eac3 to your computer and use it in GitHub Desktop.
Override default primary key
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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