Sha256: 5068cab3d6f84a23bfe8df0b7106d4047ade0daf023642a188d7f459b5789219

Contents?: true

Size: 641 Bytes

Versions: 46

Compression:

Stored size: 641 Bytes

Contents

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

46 entries across 44 versions & 3 rubygems

Version Path
surveyor-0.22.0 lib/generators/surveyor/templates/db/migrate/create_question_groups.rb
surveyor-0.21.0 lib/generators/surveyor/templates/db/migrate/create_question_groups.rb
surveyor-0.20.0 generators/surveyor/templates/migrate/create_question_groups.rb
surveyor-0.19.7 generators/surveyor/templates/migrate/create_question_groups.rb
surveyor-0.19.6 generators/surveyor/templates/migrate/create_question_groups.rb
surveyor-0.19.5 generators/surveyor/templates/migrate/create_question_groups.rb
surveyor-0.19.4 generators/surveyor/templates/migrate/create_question_groups.rb
surveyor-0.19.3 generators/surveyor/templates/migrate/create_question_groups.rb
ccls-surveyor-1.0.0 generators/surveyor/templates/migrate/create_question_groups.rb
surveyor-0.19.2 generators/surveyor/templates/migrate/create_question_groups.rb
jakewendt-surveyor-0.11.3 generators/surveyor/templates/migrate/create_question_groups.rb
surveyor-0.19.1 generators/surveyor/templates/migrate/create_question_groups.rb
surveyor-0.19.0 generators/surveyor/templates/migrate/create_question_groups.rb
surveyor-0.18.2 generators/surveyor/templates/migrate/create_question_groups.rb
surveyor-0.18.1 generators/surveyor/templates/migrate/create_question_groups.rb
surveyor-0.18.0 spec/test_app/db/migrate/20101119172429_create_question_groups.rb
surveyor-0.18.0 generators/surveyor/templates/migrate/create_question_groups.rb
surveyor-0.17.0 spec/test_app/db/migrate/20101119172429_create_question_groups.rb
surveyor-0.17.0 generators/surveyor/templates/migrate/create_question_groups.rb
surveyor-0.16.1 generators/surveyor/templates/migrate/create_question_groups.rb