diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-01-11 20:24:27 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-01-15 19:27:42 +0900 |
commit | 5608d8afe4397757f4d1ec95f5a78416365b17ed (patch) | |
tree | 7584b941f573ed71f1391f5037c6e036912bdcde /activerecord/lib/active_record/validations.rb | |
parent | 179df9df68396a6916f62192971838b7e73d5f76 (diff) | |
download | rails-5608d8afe4397757f4d1ec95f5a78416365b17ed.tar.gz rails-5608d8afe4397757f4d1ec95f5a78416365b17ed.tar.bz2 rails-5608d8afe4397757f4d1ec95f5a78416365b17ed.zip |
Clean up internal metadata definition
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 350ae6cdc1ea83e21c23abd10e7e99c9a0bbdbd2.
`: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
Diffstat (limited to 'activerecord/lib/active_record/validations.rb')
0 files changed, 0 insertions, 0 deletions