-
-
Notifications
You must be signed in to change notification settings - Fork 909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce support for the Attributes API typing #1159
Open
bsimpson
wants to merge
7
commits into
thoughtbot:master
Choose a base branch
from
bsimpson:bls-add-support-for-attributes-api-typing
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Introduce support for the Attributes API typing #1159
bsimpson
wants to merge
7
commits into
thoughtbot:master
from
bsimpson:bls-add-support-for-attributes-api-typing
Commits on Dec 14, 2018
-
Introduce support for the Attributes API typing
The column type itself is only a uuid in certain database implementations like PostgreSQL MySQL uuids are supportable using the Rails 5 Attributes API and registering a new :uuid type. The column type is not a :uuid, but the registered attribute type is a :uuid e.g. module ActiveRecord module Type class Uuid < ActiveRecord::Type::Binary def type :uuid end ... end end end ActiveRecord::Type.register(:uuid, ActiveRecord::Type::Uuid, adapter: :mysql2) class Model < ApplicationRecord attribute :id, :uuid end Model.attribute_types[:id].type # => :uuid
Configuration menu - View commit details
-
Copy full SHA for 674e986 - Browse repository at this point
Copy the full SHA 674e986View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4fefa00 - Browse repository at this point
Copy the full SHA 4fefa00View commit details
Commits on Dec 17, 2018
-
Configuration menu - View commit details
-
Copy full SHA for c4d751c - Browse repository at this point
Copy the full SHA c4d751cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c35b6d7 - Browse repository at this point
Copy the full SHA c35b6d7View commit details
Commits on Dec 18, 2018
-
Configuration menu - View commit details
-
Copy full SHA for d14883f - Browse repository at this point
Copy the full SHA d14883fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81d8d3a - Browse repository at this point
Copy the full SHA 81d8d3aView commit details
Commits on Dec 19, 2018
-
Configuration menu - View commit details
-
Copy full SHA for c95f26c - Browse repository at this point
Copy the full SHA c95f26cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.