|
|
|
|
|
by pg_bot
4795 days ago
|
|
Running on rails 4 it should be: $ rails g migration add_uuid_to_postgresql
class AddUuidToPostgresql < ActiveRecord::Migration
execute("CREATE EXTENSION uuid-ossp;")
end
$ rake db:migrate && rake db:test:prepare
Then create a table as shown in the article, and it should work. |
|
Does anyone consider this an issue? I have been using non-superuser roles within my Rails apps, and using an outside superuser role to add extensions with an external tool (like pgAdmin).