34 Matching Annotations
- Dec 2023
-
gitlab.com gitlab.com
-
Enable ActiveRecord unsigned integers to use 8 bytes instead of 4. This fixes the ActiveModel::RangeError problem where AR models with perfectly fine 8 bytes primary keys are taken for ActiveModel::Type::Integer with a default limit of 4 bytes.
-
- Mar 2023
- Dec 2022
-
-
class Project< ApplicationRecord belongs_to_many :employees end
-
-
github.com github.com
-
-
-
add_column :videos, :tag_ids, :bigint, array: true Tag.has_many :videos, array: true
-
- May 2022
- Mar 2022
-
github.com github.com
-
github.com github.com
-
t.datetime :seen_at, default: { expr: 'NOW()' }
-
-
github.com github.com
-
Define table structure (columns and indexes) inside your ActiveRecord models like you can do in migrations. Also similar to DataMapper inline schema syntax.
-
-
-
not as good/useful as some other gem options/approaches, such as the one that adds a
data
method per migration, or that lets you tag with:post_deploy
, etc.
-
-
github.com github.com
-
github.com github.com
-
- Feb 2022
-
github.com github.com
-
and calls .unarchived and .archived appropriately when passed an ActiveRecord relation.
-
- Nov 2021
- Jan 2020
-
github.com github.com
-
github.com github.com
-
github.com github.com
-
github.com github.com
-
for pointing me to the spiritual successor to this project at: https://github.com/GeorgeKaraszi/ActiveRecordExtended
-
- Dec 2019
-
github.com github.com
- Aug 2019
-
github.com github.com
-
pluck_to_hash
-