Hi , I am new to the ruby on rails. I am having some problem with migration on ruby. any one could explain.... 1. what db migration on ruby. 2. how to create migration. 3. how to migrate the "db" development to production ( now i have create needed to file for migration(for creating new tables) .. i did... "rake db:migrate" command.. it says nothing(no error/ no success command, And also no changes was made in DB) i have some idea about 1 & 2. but i have no idea about 3. Please help to Thanks & Regards, Mohan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
mohan wrote:> Hi , > > I am new to the ruby on rails. > I am having some problem with migration on ruby. > any one could explain.... > 1. what db migration on ruby. > 2. how to create migration. > 3. how to migrate the "db" development to production ( now i have > create needed to file for migration(for creating new tables) .. i > did... "rake db:migrate" command.. it says nothing(no error/ no > success command, And also no changes was made in DB) > > i have some idea about 1 & 2. but i have no idea about 3. Please help > to1. Migrations are an Agile way to build up and modify a db structure using Ruby to avoid relying on SQL. 2. $ script/generate migration MyMigrationName $ ls db/migrate ... 00<x>_my_migration_name.rb ... $ vi db/migrate/00<x>_my_migration_name.rb 3. $ RAILS_ENV=production rake db:migrate Hope this helps. For more: google:rails migration, first link: http://garrettsnider.backpackit.com/pub/367902 Alan -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---