This file contains hidden or 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
16:26:28,632 ERROR [stderr] (http-auth-platform.c1-vagrant-ctct-centos5.roving.com/10.0.2.15:8080-3) Java::JavaLang::NullPointerException - : | |
16:26:28,633 ERROR [stderr] (http-auth-platform.c1-vagrant-ctct-centos5.roving.com/10.0.2.15:8080-3) json.ext.Generator$6.generate(Generator.java:385) | |
16:26:28,634 ERROR [stderr] (http-auth-platform.c1-vagrant-ctct-centos5.roving.com/10.0.2.15:8080-3) json.ext.Generator$6.generate(Generator.java:371) | |
16:26:28,634 ERROR [stderr] (http-auth-platform.c1-vagrant-ctct-centos5.roving.com/10.0.2.15:8080-3) json.ext.Generator$Handler.generateNew(Generator.java:172) | |
16:26:28,634 ERROR [stderr] (http-auth-platform.c1-vagrant-ctct-centos5.roving.com/10.0.2.15:8080-3) json.ext.Generator.generateJson(Generator.java:36) | |
16:26:28,634 ERROR [stderr] (http-auth-platform.c1-vagrant-ctct-centos5.roving.com/10.0.2.15:8080-3) json.ext.GeneratorMethods$RbString.to_json(GeneratorMethods.java:106) | |
16:26:28,634 ERROR [stderr] (http-auth-platform.c1-vagrant-ctct-centos5.roving.com/10.0.2.15 |
This file contains hidden or 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
# Failure case using mysql jdbc adapter | |
$ rails new blog -d mysql | |
$ cd blog | |
$ rake db:create | |
$ rails c | |
Loading development environment (Rails 3.2.8) | |
jruby-1.7.0 :001 > class Foo < ActiveRecord::Base | |
jruby-1.7.0 :002?> end | |
=> nil | |
jruby-1.7.0 :003 > a = ["ÅÆ", "\"ÅÆ"] |
This file contains hidden or 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
############################################################################# | |
# Migration file to create index so you don't get duplicate users for a group | |
############################################################################# | |
class AddMembersUniquenessIndex < ActiveRecord::Migration | |
def self.up | |
add_index :group_members, [:group_id,:user_id], :unique => true | |
end | |
def self.down | |
remove_index :group_members, [:group_id,:user_id] |