PluginStore API - get row by attribute

Hi Jafeth,
I generated a new model for my plugin.
I think I used

rails generate migration modelname

It is no problem to execute another db migration on development in the discourse root

bundle exec rake db:migrate

Sure the data stored in ActiveRecord is persistent and will not be deleted even if you delete your plugin.
But for me it is ok. My plugin doesn’t generate that much data.

On a production system make sure that the model migration file is there before the script executes the migration or you have to migrate by hand.

Hope that helps you.
Greetings, André