# Unclear how to create new timestamped plugin migrations

**URL:** <https://www.ruby-forum.com/t/unclear-how-to-create-new-timestamped-plugin-migrations/152916>\
**Category:** Engines\
**Created:** [November 9, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/unclear-how-to-create-new-timestamped-plugin-migrations/152916 "2008-11-09T18:45:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidjrice](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5e9695/32.png) [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Post date:** [November 9, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/unclear-how-to-create-new-timestamped-plugin-migrations/152916/1 "2008-11-09T18:45:06Z")

</div>

So excited the migrations issue has been resolved.

My issue is, I’m working on a plugin, and I want to add a new migration  
in the plugin directory. Per the new migrations.rb docs (see snippet at  
end), my migrations should be timestamped. In a rails app, I can  
‘script/generate migration xxx’, which gives me a timestamped file in  
the migrations directory. But it’s not clear how to do that in the  
context of a plugin. Note i’m not talking about “script/generate  
plugin\_migration” (which is deceptively named in this situation).

[aside] Also, I can’t seem to generate rdoc for engines – it flakes on  
all the extensions (Skipping require of dynamic string:  
“engines/rails\_extensions/#{name}”) and I’m not sure how to manually  
generate those docs. Since the online api docs aren’t updated yet, I’ve  
got to read the docs inline in the code (horrors)!

# vendor/

# |

# plugins/

# |

# my\_plugin/

# |- init.rb

# |- lib/

# |- db/

# |-migrate/

# |- 20081105123419\_add\_some\_new\_feature.rb

# |- 20081107144959\_and\_something\_else.rb
