Sha256: 84173e41489d2a9e279f98656b4b159051a98970299ed7ff299302f80481d89a

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

class CreateAnswers < ActiveRecord::Migration
  def change
    create_table :answers do |t|
      t.integer :question_id, :null => false
      t.text :details
      t.boolean :active, :default => true
      t.integer :position

      t.timestamps
    end

    add_index :answers, :question_id
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
survey_says-0.0.2 db/migrate/20111208181414_create_answers.rb
survey_says-0.0.1 db/migrate/20111208181414_create_answers.rb