Skip to main content

Community

Subscribe to GoRails to join the conversation. Ask questions about your code, get help adding a new feature, and discuss implementation details with other members.

1 post Gravatar

How to perform bulk update in rails?

Databases • Asked by Srinivasa Varma

Hi there, Here is the problem in more detail. I tried to perform bulk update on rails model, but ended up with normal save method. I have some number of records and i wanted to update their valu...


5 posts Gravatar

Polymorphic relationship vs STI vs Class table inheritance with RoR

Databases • Asked by Toshiki Inami

Hi I watch your tuts and it's pretty helpful. Always thanks! I have some question about database design. There are three types of invoice items with following tables 1) **SubscriptionItems**...


3 posts Gravatar

Some good ways of seeding data in my app?

Databases • Asked by Karl Coelho

I need some seed data for my app. How do I seed Devise users, and always as images for Paperclip?


3 posts Gravatar

How would you improve these db's and associations

Databases • Asked by Shaun Fahey

Database Structure Hello people. I have my first proper paid Rails project to start soon, so I’ve been thinking about the database and the associations. The two links below are the databases...


6 posts Gravatar

Importing datasets. Recommendations?

Databases • Asked by Brent C

I have a few datasets that I need to import into my rails app. They vary from 100 records to 5000 which will span across a few models with various associations. Q.1: I can cleanse the data prio...


9 posts Gravatar

setup Postgres user fails

Databases • Asked by Anthony Candaele

Hi, I'm following the Deploy Rails guide I'm now a the part where Postgres gets installed. I successfully installed Postgres, but when I try to create a new Postgres user with: createu...


3 posts Gravatar

could not connect to database postgres

Databases • Asked by Peter Boomsma

I'm trying to install postgresql but I'm running into an error when I try to create a user: createuser: could not connect to database postgres: could not connect to server: No such file or d...


4 posts Gravatar

Capistrano deploy removes tables from database.

Databases • Asked by Peter Boomsma

I use capistrano to deploy my Rails app to my VPS, but after every deploy when I visit my page I get an error. The log says: I, [2014-11-04T08:20:16.659289 #12482] INFO -- : Started GET "/" f...