Questions
Linux
Laravel
Mysql
Ubuntu
Git
Menu
HTML
CSS
JAVASCRIPT
SQL
PYTHON
PHP
BOOTSTRAP
JAVA
JQUERY
R
React
Kotlin
×
Linux
Laravel
Mysql
Ubuntu
Git
New posts in has-many
limit the number of objects returned in a has_many
Jan 10, 2021
ruby-on-rails
activerecord
limit
has-many
Rails has_many through aliasing with source and source_type for multiple types
Aug 30, 2022
ruby-on-rails
activerecord
associations
has-many-through
has-many
Undefined property: Illuminate\Database\Eloquent\Relations\BelongsTo::$name laravel 5.4
Sep 18, 2022
php
laravel-5.4
has-many
belongs-to
Rails has many and belongs to one
Nov 05, 2022
ruby-on-rails
associations
has-many
has-many-through
belongs-to
Can has_one association be used when the model has one or zero instances of another model?
Nov 02, 2022
ruby-on-rails
associations
has-many
has-one
Rails Question: belongs_to with STI -- how do i do this correctly?
Jun 04, 2020
ruby-on-rails
ruby-on-rails-3
has-many
single-table-inheritance
sti
Delete a Has-Many Relationship ONLY
Aug 17, 2022
ruby-on-rails
relationship
has-many
What are the default values for Rails 3 for :dependent on has_many and belongs_to
Sep 22, 2022
ruby-on-rails
ruby-on-rails-3
default-value
has-many
belongs-to
Need data from rails join table, has_many :through
Sep 07, 2021
ruby-on-rails
associations
has-many-through
has-many
How it works - `belongs_to :user, dependent: :destroy`
Sep 20, 2017
ruby-on-rails
ruby
has-many
belongs-to
Nested attributes for belongs_to association rails
Feb 23, 2021
forms
ruby-on-rails-3.2
has-many
belongs-to
rails-models
Is it possible to create a conditional association in model?
Nov 12, 2022
ruby-on-rails
conditional
has-many
polymorphic-associations
single-table-inheritance
Rails: Non id foreign key lookup ActiveRecord
Jul 19, 2015
ruby-on-rails
activerecord
foreign-key-relationship
has-many
belongs-to
Rails - check if record exists in has_many association
Apr 05, 2019
ruby-on-rails
activerecord
associations
has-many
Rails has_many association count child rows
Feb 08, 2022
ruby-on-rails
grouping
has-many
How to use constant in the ON condition in Yii2 hasMany relation
Jan 04, 2022
yii2
has-many
polymorphic-associations
relation
Rails RSpec Tests for a has_many :through Relationship
Oct 24, 2022
ruby-on-rails
ruby
rspec
has-many
has-many-through
Rails: belongs_to vs has_one
Sep 01, 2022
ruby-on-rails
model
associations
has-many
belongs-to
how to avoid duplicates in a has_many :through relationship?
Feb 01, 2022
ruby-on-rails
ruby
duplicates
has-many-through
has-many
rails model has_many of itself
Aug 30, 2022
ruby-on-rails
activerecord
model
has-many
« Newer Entries
Older Entries »