Sha256: 14ca853ff1804f51bff30f76e6210aed2d31db3c7eed7d5f7feb31261f72c12b

Contents?: true

Size: 285 Bytes

Versions: 11

Compression:

Stored size: 285 Bytes

Contents

class CreateAnswers < ActiveRecord::Migration
  def change
    create_table :answers do |t|
      t.references :question
      t.text :body
      t.integer :sequential_id

      t.timestamps
    end
    add_index :answers, :question_id
    add_index :answers, :sequential_id
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sequenced-3.1.1 test/dummy/db/migrate/20120219165548_create_answers.rb
sequenced-3.1.0 test/dummy/db/migrate/20120219165548_create_answers.rb
sequenced-3.0.0 test/dummy/db/migrate/20120219165548_create_answers.rb
sequenced-2.0.0 test/dummy/db/migrate/20120219165548_create_answers.rb
sequenced-1.6.0 test/dummy/db/migrate/20120219165548_create_answers.rb
sequenced-1.5.0 test/dummy/db/migrate/20120219165548_create_answers.rb
sequenced-1.4.0 test/dummy/db/migrate/20120219165548_create_answers.rb
sequenced-1.3.0 test/dummy/db/migrate/20120219165548_create_answers.rb
sequenced-1.2.0 test/dummy/db/migrate/20120219165548_create_answers.rb
sequenced-1.0.0 test/dummy/db/migrate/20120219165548_create_answers.rb
sequenced-0.1.0 test/dummy/db/migrate/20120219165548_create_answers.rb