Sha256: e39ed5e7fde28942b0da739c438a86b5db9e026d9ef192d3e65c1d8572faa580

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

class CreateUserAnswers < ActiveRecord::Migration
  def change
    create_table :user_answers do |t|
      t.integer :user_id,  :null => false
      t.integer :answer_id,  :null => false

      t.timestamps
    end
    add_index :user_answers, :user_id
    add_index :user_answers, :answer_id
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
survey_says-0.0.2 db/migrate/20111211175518_create_user_answers.rb
survey_says-0.0.1 db/migrate/20111211175518_create_user_answers.rb