best practise is to leave it alone - rails generate scaffold some_class some_field_name some_other_field_name …… rails db:migrate
that’s it :) > Den 14/11/2014 kl. 10.16 skrev M,Gopi M.gopinath <[email protected]>: > > I may be adding few things later to database table, But Know I am in initial > stage has only 10 table .... > > What is the Best practices? > > > > Best Regards, > > Gopinath M > > Ruby on Rails Developer > > Contact : +91-9994652146 > > Skype Id : gopinath.murugan > > Email : [email protected] <mailto:[email protected]> > > > > > > On Fri, Nov 14, 2014 at 2:34 PM, Walther Diechmann <[email protected] > <mailto:[email protected]>> wrote: > as long as you develop - one file per migration > > once you ‘wrap’ it up - a single file is ok > > but why change it in the first place? > >> Den 14/11/2014 kl. 09.27 skrev M,Gopi M.gopinath <[email protected] >> <mailto:[email protected]>>: >> >> Hi All, >> >> I have question with rails migration file. >> >> Seems In rails for each and every table migration file will be generate with >> timestamp followed by table name. >> >> But I have moved all the migration file to a single file, and deleted all >> the migrations. >> >> what is the best way of practice, >> >> Having single migration for each table or else a single migration file for >> the whole application. >> >> Thanks in advance... >> >> >> >> Best Regards, >> >> Gopinath M >> >> Ruby on Rails Developer >> >> >> >> >> >> >> -- >> 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 [email protected] >> <mailto:[email protected]>. >> To post to this group, send email to [email protected] >> <mailto:[email protected]>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rubyonrails-talk/CAPDEixJMJsZNEjCuCFw%3DRkkq2kGvJnmCGEnucCF3H-XNMBs5uw%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/rubyonrails-talk/CAPDEixJMJsZNEjCuCFw%3DRkkq2kGvJnmCGEnucCF3H-XNMBs5uw%40mail.gmail.com?utm_medium=email&utm_source=footer>. >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. > > > -- > 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 [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/39D5FCE4-5B2F-46F2-8381-45CF4B23D6F0%40diechmann.net > > <https://groups.google.com/d/msgid/rubyonrails-talk/39D5FCE4-5B2F-46F2-8381-45CF4B23D6F0%40diechmann.net?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > -- > 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 [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CAPDEixJcBeu-dQ0m1TJmZb2oPnejw4S1TRDMnZ6MxAPbFhXi1Q%40mail.gmail.com > > <https://groups.google.com/d/msgid/rubyonrails-talk/CAPDEixJcBeu-dQ0m1TJmZb2oPnejw4S1TRDMnZ6MxAPbFhXi1Q%40mail.gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4DEAE5BB-4C04-4057-AB17-7BB692B805E9%40diechmann.net. For more options, visit https://groups.google.com/d/optout.

