pinnymz / migration_comments

Comments for your migrations
MIT License
173 stars 31 forks source link

Postgresql uuid default is not set. #14

Closed seuros closed 10 years ago

seuros commented 10 years ago

When creating a table with uuid as primary key

create_table "people", id: :uuid do |t|
    t.string   "name"
    t.string   "age"
end

The default value set by rails is not set which cause error when adding a new record.

pinnymz commented 10 years ago

Thanks for reporting this. What version of Rails are you using?

seuros commented 10 years ago

I tried in both 4.1.1 and 4.2.alpha.

pinnymz commented 10 years ago

@seuros please confirm if the proposed fix is working for you.

seuros commented 10 years ago

Confirmed to work in 4.1 and 4.2. :+1: