1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

t.string takes keyword arguments

This commit is contained in:
Akira Matsuda 2019-09-24 13:46:06 +09:00
parent ba0c031148
commit 2c66870726

View file

@ -34,7 +34,7 @@ module ActiveRecord
key_options = connection.internal_string_options_for_primary_key
connection.create_table(table_name, id: false) do |t|
t.string :key, key_options
t.string :key, **key_options
t.string :value
t.timestamps
end