# Generate models/controllers/migrations/scaffold within an existing plugin

**URL:** <https://www.ruby-forum.com/t/generate-models-controllers-migrations-scaffold-within-an-existing-plugin/204944>\
**Category:** Rails\
**Created:** [March 25, 2011, 11:32am UTC](https://www.ruby-forum.com/t/generate-models-controllers-migrations-scaffold-within-an-existing-plugin/204944 "2011-03-25T11:32:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [March 25, 2011, 11:32am UTC](https://www.ruby-forum.com/t/generate-models-controllers-migrations-scaffold-within-an-existing-plugin/204944/1 "2011-03-25T11:32:10Z")

</div>

Hi, i have newly discovered Rails , and currently trying to write a  
plugin.  
the problem is that i couldn’t find any generators script (like script/  
generate or rails generate) to add models or migrations.  
i want to add them smoothly like in the standard application.  
i need your help.  
thanks in advance

---

<div class="post-metadata">

**Author:** ![heithem\_nouira](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/7bcc69/32.png) [@heithem\_nouira](https://www.ruby-forum.com/u/heithem_nouira)\
**Post date:** [March 25, 2011, 11:11pm UTC](https://www.ruby-forum.com/t/generate-models-controllers-migrations-scaffold-within-an-existing-plugin/204944/2 "2011-03-25T23:11:27Z")

</div>

On Fri, Mar 25, 2011 at 3:38 AM, heithem nouira  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> Hi, i have newly discovered Rails , and currently trying to write a  
> plugin.  
> the problem is that i couldn’t find any generators script (like script/  
> generate or rails generate) to add models or migrations.  
> i want to add them smoothly like in the standard application.  
> i need your help.  
> thanks in advance

Now you have discovered the documentation that will allow you to answer  
your  
above question.

> **[Getting Started with Rails — Ruby on Rails Guides](https://guides.rubyonrails.org/getting_started.html)**
>
> This guide covers getting up and running with Ruby on Rails.After reading this guide, you will know: How to install Rails, create a new Rails application, and connect your application to a database. The general layout of a Rails application. The...

B.
