New Discussion

Notifications

You’re not receiving notifications from this thread.

Virtual Generated Columns in Rails with ActiveRecord Discussion

4
General

Nice episode! I'd love to see an example where the virutal column on one table is using data from another table!

I think that would be a JOIN and referencing the other table's column, but good suggestion. 👍

What happens when passing stored: false?

The column is computed on select and not on insert/update.

For virtual column, if we provide true for store attribute in migration file, will create a column in db and store the value?

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.