Skip to content
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

Passing table_name to Column#initialize to avoid instance_variable_set #23677

Merged

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented Feb 14, 2016

No description provided.

@rails-bot
Copy link

r? @kaspth

(@rails-bot has picked a reviewer for you, use r? to override)

@kamipo
Copy link
Member Author

kamipo commented Feb 22, 2016

r? @rafaelfranca

@rails-bot rails-bot assigned rafaelfranca and unassigned kaspth Feb 22, 2016
@kamipo kamipo force-pushed the passing_table_name_to_column_initialize branch from 2690047 to 3c52111 Compare March 3, 2016 21:34
…ctly working

Currently the results of `column.serial?` is not correct. For
`column.serial?` correctly working, initialize `column.table_name`
immediately.
@kamipo kamipo force-pushed the passing_table_name_to_column_initialize branch from 3c52111 to 6b6a01c Compare March 7, 2016 23:51
rafaelfranca added a commit that referenced this pull request Mar 11, 2016
…itialize

Passing `table_name` to `Column#initialize` to avoid `instance_variable_set`
@rafaelfranca rafaelfranca merged commit c9219a7 into rails:master Mar 11, 2016
@kamipo kamipo deleted the passing_table_name_to_column_initialize branch March 11, 2016 15:03
kamipo added a commit to kamipo/rails that referenced this pull request Apr 8, 2019
The `table_name` was added at rails#23677 to detect whether serial column or
not correctly.

We can do that detection before initialize column object, it makes
column object size smaller, and it probably helps column object
de-duplication.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants