t.string takes keyword arguments

This commit is contained in:
Akira Matsuda 2019-09-24 13:46:06 +09:00
parent ba0c031148
commit 2c66870726
1 changed files with 1 additions and 1 deletions

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