I am trying to use this gem with the Google Spanner database and it is so close to working. I am using GUIDs as primary keys and need to store them as strings. The t.parent_key method creates an integer column. The migration then breaks because the interleaving then looks for an integer primary key in the parent table. Unless I have missed it, there is no way to specify the parent_key column type. My migration methods are below.
I am trying to use this gem with the Google Spanner database and it is so close to working. I am using GUIDs as primary keys and need to store them as strings. The
t.parent_key
method creates an integer column. The migration then breaks because the interleaving then looks for an integer primary key in the parent table. Unless I have missed it, there is no way to specify theparent_key
column type. My migration methods are below.