Sha256: c3bf701a8e8dfa59b59eac1911ea4916c58e9eb3e85c895cf392e815772976b3

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

class CreateQuestions < ActiveRecord::Migration
  def change
    create_table :questions do |t|
      t.string        :title
      t.text          :content
      t.integer       :sort_order, limit: 1, default: 1
      t.integer       :question_type_id, limit: 1, default: 1

      t.timestamps
    end

    add_index :questions, :sort_order
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 db/migrate/20130701140534_create_questions.rb