-
Hello,
this is my model
```
class Associate < ActiveRecord::Base
has_many :missions
has_many :coordinator_missions, :class_name => "Mission", :foreign_key => "coordinator_id"
end
```
```
…
-
레일즈 모델의 has_many에는 [dependent: :destroy](http://guides.rubyonrails.org/association_basics.html#has-many-association-reference) 라는 개념이 있습니다.
부모 모델이 DB에서 제거되었을 경우, 자식 모델도 함께 DB에서 없애주는 기능이죠.
가령 사용자와 초대장…
-
We hit an error trying to sync the latest commit (38d9a6ee567bfae8cf7c26579aa295e4244fc58c) to the website.
The error was:
```
Mysql2::Error: Duplicate entry '467-312980' for key 'index_concept_autho…
-
Hi All,
I am using below two gem for our Sinatra Application.
```
gem 'sinatra' # version (1.4.7)
gem 'sinatra-activerecord' # version(2.0.9)
```
We are feeling that active record query cachi…
-
Bundler: http://bundler.io/gemfile.html
```ruby
source 'https://rubygems.org'
gem "sinatra"
gem "activerecord"
gem "sinatra-activerecord"
gem "pg"
```
今回のコードだとこんな感じ。基本は https://rubygems.…
-
View details in Rollbar: [https://rollbar.com/ualbertalib/jupiter/items/1534/](https://rollbar.com/ualbertalib/jupiter/items/1534/)
```
PG::UndefinedTable: ERROR: missing FROM-clause entry for tabl…
-
I am on rails 4. v 0.8.5 version of octopus
```
...
ar-octopus (0.8.5)
activerecord (>= 3.2.0)
activesupport (>= 3.2.0)
arel (4.0.2)
...
```
when I run rake, specifically rake db:migrate, I …
-
Hi,
I have a case where not all model in my app needs to become _permanent_records_ but the issue is that *Permanent Records* adds itself to all _Activerecords_ with:
```
ActiveSupport.on_load(…
-
Redmine 3.0 - 500 Internal Server Error after click on PLAN button.
##
Processing by PlanningController#show as HTML
Parameters: {"project_id"=>"aktualizacje-drupal"}
Current user: Admin (id=1)
…
-
Starting homeland_postgresql ...
Starting homeland_postgresql ... done
Starting homeland_elasticsearch ... done
Starting homeland_postgresql ...
Starting homeland_postgresql ... done
Starting h…