Created
May 1, 2013 09:55
-
-
Save BartlomiejSkwira/5494530 to your computer and use it in GitHub Desktop.
Storing array in database in Rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #make db column text | |
| class Expense < ActiveRecord::Base | |
| serialize :parties | |
| # other model code | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment