Skip to content

Instantly share code, notes, and snippets.

@hardbap
Last active December 20, 2015 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hardbap/6187703 to your computer and use it in GitHub Desktop.
Save hardbap/6187703 to your computer and use it in GitHub Desktop.
Is this a Rails bug? JRuby bug? jdbcpostgersql bug? This works fine on MRI.
jruby 1.7.4
rails (4.0.0)
jdbc-postgres (9.2.1002.1)
activerecord-jdbc-adapter (1.2.9.1)
activerecord-jdbcpostgresql-adapter (1.2.9)
undefined method `enable_extension' for #<CreatePosts:0x30186092>org/jruby/RubyBasicObject.java:1696
class CreatePosts < ActiveRecord::Migration
def change
enable_extension 'uuid-ossp'
create_table :posts, id: :uuid, force: true do |t|
t.string :body
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment