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 Arm < ActiveRecord::Base | |
belongs_to :bandit, inverse_of: :arm | |
# instead of validating this here, you could also add a uniqueness | |
# constraint through a migration. Behavior would be similiar. | |
validates :bandit, uniqueness: true | |
end |
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
root@vmd3328:/var/www/bochumbbdevgroup/current# curl -s https://gist.githubusercontent.com/mislav/4728286/raw/rbenv-doctor.sh | bash -x 2>&1 | |
+ rbenv --version | |
rbenv 0.4.0-98-g13a474c | |
+ rbenv versions | |
2.1.0 | |
* 2.1.2 (set by /var/www/bochumbbdevgroup/current/.ruby-version) | |
+ rbenv global | |
2.1.2 | |
+ env | |
+ grep -E 'PATH|RUBY|BUNDLE|RBENV' |
NewerOlder