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

Clean up internal metadata definition #23065

Merged
merged 1 commit into from
Jan 15, 2016

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented Jan 15, 2016

I extracted and squashed some changes (e1f1b77, 5ceea1a) from #23009.
r? @schneems

Use t.index in create_table instead of add_index

It is slightly more efficient.

Revert "Use key as primary key in schema."

This reverts commit 350ae6c.

:primary_key option does nothing if id: false.

https://github.com/rails/rails/blob/v5.0.0.beta1/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb#L251-L261

Use `t.index` in `create_table` instead of `add_index`

It is slightly more efficient.

Revert "Use `key` as primary key in schema."

This reverts commit 350ae6c.

`:primary_key` option does nothing if `id: false`.

https://github.com/rails/rails/blob/v5.0.0.beta1/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb#L251-L261
schneems added a commit that referenced this pull request Jan 15, 2016
…nition

Clean up internal metadata definition
@schneems schneems merged commit ebd0beb into rails:master Jan 15, 2016
@schneems
Copy link
Member

Thanks

@kamipo kamipo deleted the clean_up_internal_metadata_definition branch January 16, 2016 05:56
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

3 participants