Have you tried using: rake db:migrate RAILS_ENV=production
-c On May 18, 12:35 pm, Jorge alejandro Mendoza torres <li...@ruby- forum.com> wrote: > When I do a migration, the changes are make in the test database. Does > anyone know the reason? > > In the config/environment.rb file, I have this: ENV['RAILS_ENV'] ||= > 'production' > > And in the db/ folder, it creates a file named test.sqlite3 > > When I did the migrations, RoR used the test database, but when I want > to make something in the application, the migrations don´t appear > because the app is using the production database. > > Please, help me. > -- > Posted viahttp://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-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/rubyonrails-talk?hl=en. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.