Sha256: fb90e015898f091d7309217d8df3cad83f5beb7577b6eab11f440cbc581e49a8

Contents?: true

Size: 441 Bytes

Versions: 11

Compression:

Stored size: 441 Bytes

Contents

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

      # Content
      t.string :access_code #unique id for the object used in urls

      # Expiry
      t.datetime :started_at
      t.datetime :completed_at

      t.timestamps
    end
  end

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