I am new to Ruby on Rail, and am currently trying to modify an existing (incomplete) plugin from Gitub. Unless I am trying to add new models to this plugin, things went smoothly.
I know the script / model, and the script / generated plugin know. But how can you add models to a plugin without rebuilding the entire plugin? I do not want to rewrite the plugin to add a function to it, and generating the script / model vendor / plugin / my plugin has generated other stuff in the whole project instead of the plug-in directory.
Maybe I can write a model class file myself, but how can I create my own rake file about migration?
Note: Plug-ins contains more than one category and pairs of migrated schemas are named datetime_create_model_name.rb. But I did not find any generator in plugin dior?
For a generator type plugin, create a migration script for the new model for.
1)
2)
is an example: