Sha256: 2c3dfb9d78b8e920eac672001db3e05f15b42433bf3312e1cab864b70c2e20ed

Contents?: true

Size: 648 Bytes

Versions: 11

Compression:

Stored size: 648 Bytes

Contents

# encoding: UTF-8
class CreateSurveySections < ActiveRecord::Migration
  def self.up
    create_table :survey_sections do |t|
      # Context
      t.integer :survey_id

      # Content
      t.string :title
      t.text :description

      # 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.integer :display_order

      t.string :custom_class

      t.timestamps
    end
  end

  def self.down
    drop_table :survey_sections
  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_survey_sections.rb
affectiva-surveyor-1.5.0.pre.disco.2 lib/generators/surveyor/templates/db/migrate/create_survey_sections.rb
hssc_surveyor-1.4.3.pre lib/generators/surveyor/templates/db/migrate/create_survey_sections.rb
hssc_surveyor-1.4.2.pre lib/generators/surveyor/templates/db/migrate/create_survey_sections.rb
hssc_surveyor-1.4.1.pre lib/generators/surveyor/templates/db/migrate/create_survey_sections.rb
surveyor-1.4.0 lib/generators/surveyor/templates/db/migrate/create_survey_sections.rb
surveyor-1.3.0 lib/generators/surveyor/templates/db/migrate/create_survey_sections.rb
surveyor-1.2.0 lib/generators/surveyor/templates/db/migrate/create_survey_sections.rb
surveyor-1.1.0 lib/generators/surveyor/templates/db/migrate/create_survey_sections.rb
surveyor-1.0.1 lib/generators/surveyor/templates/db/migrate/create_survey_sections.rb
surveyor-1.0.0 lib/generators/surveyor/templates/db/migrate/create_survey_sections.rb