Does anybody know what implications there are as the keys change within an hstore column over time? Are migrations needed to make the keys consistent in the hstore column?
For example:
initial model class created with hstore column with keys:
:foo :bar
data added to database
one row/record has "foo"=>"blah", "bar"=>"blah blah"
...
later changes made to model class new key added to hstore column
:baz
more data added to database
...
second row/record has "foo"=>"blah", "bar"=>"blah blah", "baz"=>"blah blah blah"
Do I have to go back and make sure that the first record has an empty :baz property?
What about the removal of keys? What happens if I remove :foo from my model?
To be more clear, what happens when you have a database that looks like this after several changes to the model:
Does anybody know what implications there are as the keys change within an hstore column over time? Are migrations needed to make the keys consistent in the hstore column?
For example:
initial model class created with hstore column with keys:
:foo :bar
data added to database
one row/record has
"foo"=>"blah", "bar"=>"blah blah"
...
later changes made to model class new key added to hstore column
:baz
more data added to database
...
second row/record has
"foo"=>"blah", "bar"=>"blah blah", "baz"=>"blah blah blah"
Do I have to go back and make sure that the first record has an empty :baz property?
What about the removal of keys? What happens if I remove :foo from my model?