Monday, May 20, 2013

Re: [Rails] activerecord to write to database

On Mon, May 20, 2013 at 3:36 PM, Marcio Pugina <lists@ruby-forum.com> wrote:
> I created a db with rake migrate and added to columns, symbol and
> cur_price in a table call Financials. I want to use activererecord from
> a script to write the data from the script to the database. Could
> someone please provide an example.

See: rails runner --help

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

--
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-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCGvYYxvF%3DVciL1WFu4r25GRvVugDfZCXndLGcu42U40g%40mail.gmail.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate