Sha256: 2f63aa5ed0adf9bf765eb69a7dbe1dac3e2ec25803b4270edf5f0b6a6b1d8540

Contents?: true

Size: 334 Bytes

Versions: 3

Compression:

Stored size: 334 Bytes

Contents

module RestPack::Group::Service::Models
  class Membership < ActiveRecord::Base
    self.table_name = :restpack_memberships

    attr_accessible :application_id, :account_id, :group_id, :invitation_id, :user_id
    validates_presence_of :application_id, :group_id, :user_id

    belongs_to :group
    belongs_to :invitation
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
restpack_group_service-0.0.7 lib/restpack_group_service/models/membership.rb
restpack_group_service-0.0.6 lib/restpack_group_service/models/membership.rb
restpack_group_service-0.0.5 lib/restpack_group_service/models/membership.rb