Last active
December 20, 2015 20:08
-
-
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.
This file contains 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
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 |
This file contains 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 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