Sha256: 0a29ccdd7a88503db7f7883eab79ef942b766155a652c58ce5c4d584d4c1d89e

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 Bytes

Contents

class CreateQuestions < ActiveRecord::Migration
  def self.up
    create_table :questions do |t|
      t.integer :question_category_id
      t.text    :question
      t.text    :answer
      t.integer :position


      t.timestamps
    end
  end

  def self.down
    drop_table :questions
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_faq-3.0.3 lib/generators/templates/db/migrate/20090526213535_create_questions.rb