Autocorrect Rails/EnumSyntax
This commit is contained in:
parent
5e439aa07b
commit
5b49af7559
4 changed files with 4 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ class Survey < ActiveRecord::Base
|
|||
has_many :survey_questions, dependent: :destroy
|
||||
has_many :survey_submissions, dependent: :destroy
|
||||
|
||||
enum target: [:after_conference, :during_registration, :after_event]
|
||||
enum :target, [:after_conference, :during_registration, :after_event]
|
||||
validates :title, presence: true
|
||||
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue