When does the comment block with schema information for the model get updated by rails? -


In some rail model definitions, there is a comment block on the top of the schema information.

  # == Schema Info # Schema version: 20090122060318 # # Table name: table_name # # id: integer (4) not tap, primary key ...  

When is it updated? Does it occur only once, when you use generator scripts to model? Is there a way to update this block when migration is done?

The output of the plugin just seems to install it and annotate play and schema information will be automatically updated. Ideally, run it after every migration.


Comments