osem-fcy/app/models/invite.rb
Rahul 654760c3fc initialize invites
Invites model,controller and views are initialized.

add datepicker and selectize in invites#new

calender is added for end date field and selectize is added for emails field to allow multiple emails in field
2019-10-24 23:26:37 +05:30

8 lines
256 B
Ruby

class Invite < ApplicationRecord
attr_accessor :emails
belongs_to :conference
validates :end_date, presence: true
validates :invite_for, presence: true
validates :user_id, presence: true, uniqueness: { scope: [:invite_for, :conference_id] }
end