Class: CreateQuestionGroups
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateQuestionGroups
- Defined in:
- lib/generators/surveyor/templates/db/migrate/create_question_groups.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
25 26 27 |
# File 'lib/generators/surveyor/templates/db/migrate/create_question_groups.rb', line 25 def self.down drop_table :question_groups end |
.up ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/generators/surveyor/templates/db/migrate/create_question_groups.rb', line 3 def self.up create_table :question_groups do |t| # Content t.text :text t.text :help_text # Reference t.string :reference_identifier # from paper t.string :data_export_identifier # data export t.string :common_namespace # maping to a common vocab t.string :common_identifier # maping to a common vocab # Display t.string :display_type t.string :custom_class t.string :custom_renderer t. end end |