"Gustavo de Sá Carvalho Honorato" <gustavohonorato wrote in post 
#969047:
> Hello,
>
> What are the good practices to deploy an Rails database in production?
> It is
> said that is unsafe to run database migrations in a production database,

That's ridiculous.  Where did you get that information?

> instead we should use schema.rb and seed.rb scripts. As far as I know,
> schema.rb can just be used to create initial schemas,

That's correct.  When you set up a new installation, run rake 
db:schema:load instead of running all the migrations.  But that's the 
only time you'd do that.

> so, what are the
> procedures to update the database schema in production?

Use the migrations.  That's what they're for.

>
> Thanks,
> Gustavo

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org

-- 
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-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.

Reply via email to