Sha256: 994f45289757b10398894d04ba33c0bcdf956eaa770aad8206c4ac5477f069e3

Contents?: true

Size: 629 Bytes

Versions: 11

Compression:

Stored size: 629 Bytes

Contents

# encoding: UTF-8
class CreateQuestionGroups < ActiveRecord::Migration
  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.timestamps
    end
  end

  def self.down
    drop_table :question_groups
  end
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
upgrade_surveyor-1.4.2 lib/generators/surveyor/templates/db/migrate/create_question_groups.rb
affectiva-surveyor-1.5.0.pre.disco.2 lib/generators/surveyor/templates/db/migrate/create_question_groups.rb
hssc_surveyor-1.4.3.pre lib/generators/surveyor/templates/db/migrate/create_question_groups.rb
hssc_surveyor-1.4.2.pre lib/generators/surveyor/templates/db/migrate/create_question_groups.rb
hssc_surveyor-1.4.1.pre lib/generators/surveyor/templates/db/migrate/create_question_groups.rb
surveyor-1.4.0 lib/generators/surveyor/templates/db/migrate/create_question_groups.rb
surveyor-1.3.0 lib/generators/surveyor/templates/db/migrate/create_question_groups.rb
surveyor-1.2.0 lib/generators/surveyor/templates/db/migrate/create_question_groups.rb
surveyor-1.1.0 lib/generators/surveyor/templates/db/migrate/create_question_groups.rb
surveyor-1.0.1 lib/generators/surveyor/templates/db/migrate/create_question_groups.rb
surveyor-1.0.0 lib/generators/surveyor/templates/db/migrate/create_question_groups.rb