Add Organization to API

This commit is contained in:
Alberto Miedes Garcés
2017-01-26 10:57:02 +01:00
parent 69fc161b83
commit e8fc387574
3 changed files with 14 additions and 7 deletions

View File

@@ -1,4 +1,7 @@
class Organization < ActiveRecord::Base
include Graphqlable
belongs_to :user, touch: true
validates :name, presence: true