mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
* Survey period constraints * Add abilities * Enforce required questions * Update survey_submssion updated_at * Do a full match of possible answer and user reply
15 lines
340 B
Ruby
15 lines
340 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateSurveys < ActiveRecord::Migration
|
|
def change
|
|
create_table :surveys do |t|
|
|
t.datetime :start_date
|
|
t.datetime :end_date
|
|
t.string :title
|
|
t.text :description
|
|
t.references :surveyable, polymorphic: true, index: true
|
|
|
|
t.timestamps null: false
|
|
end
|
|
end
|
|
end
|