db/migrate/20120528164634_create_account.rb in iugusdk-1.0.0.alpha.5 vs db/migrate/20120528164634_create_account.rb in iugusdk-1.0.0.alpha.7
- old
+ new
@@ -1,9 +1,11 @@
class CreateAccount < ActiveRecord::Migration
def up
- create_table :accounts do |t|
+ create_table :accounts, id: false do |t|
+ t.uuid :id, primary_key: true
t.timestamps
end
+ add_index :accounts, :id
end
def down
drop_table :accounts
end