Skip to content

Instantly share code, notes, and snippets.

@abitdodgy
Created November 16, 2015 12:35
Show Gist options
  • Save abitdodgy/d661f1db34bab603e6ac to your computer and use it in GitHub Desktop.
Save abitdodgy/d661f1db34bab603e6ac to your computer and use it in GitHub Desktop.
1_0_0_1_
'{ "1": 0, "2": 1, "3": 0, "4": 0 }'
{ "1" => 0, "2" => 1, "3" => 0, "4" => 0, }.hash
WorkspaceTypes:
id: [Int]
name: [String]
users: [Int]
storage: [Int]
price: [Int]
User:
has_many :owned_workspaces
Workspace
belongs_to :owner
kind_id
User.workspaces.join(:kind).group(:kind_id)
nano: 2
small: 1
medium: 0,
large: 0
{
1: 2,
2: 1,
3: 0,
4: 0,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment