How can i use the same name? After clearing the rails App.

28 views
Skip to first unread message

joung-sik yoo

unread,
Jul 7, 2014, 9:24:23 PM7/7/14
to rubyonra...@googlegroups.com
0. Environment
 - OS : Ubuntu 12.04.4
 - Ruby version : 2.1.1p76
 - rails version : 4.1.2
 
1. create rails app
 - rails new myapp
=> OK
 
2. generate model
 - rails generate model mytable name:string
=> OK
 
3. delete app
 - rm -rf myapp
=> OK
 
4.  re create rails app
 - rails new myapp
=> OK
 
5. generate model
 - rails generate model mytable name:string
=> Not OK! hanging
 
Please Help me!

Walter Lee Davis

unread,
Jul 8, 2014, 8:10:46 AM7/8/14
to rubyonra...@googlegroups.com
Since you asked nicely, you need to restart the Spring preloader. It "remembers" the old application and has the original model in memory.

Walter

>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/168b7d80-4d2f-4c14-9de2-50d2cfa0d544%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages