Sha256: 4f4c8a006d5bf7c002cdb9e3839174a82d4ae4f12be7a95c6c240325c3334d53

Contents?: true

Size: 393 Bytes

Versions: 3

Compression:

Stored size: 393 Bytes

Contents

class CreateKnowledgeBaseSections < ActiveRecord::Migration
  def change
    create_table :knowledge_base_sections do |t|
      t.references :sectionable, polymorphic: true
      t.integer :position
      t.string :kind

      t.timestamps
    end

    add_index "knowledge_base_sections", ["sectionable_id", "sectionable_type"], name: "index_knowledge_base_sections_on_sectionable"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
knowledge_base-0.2.0 db/migrate/20140305134249_create_knowledge_base_sections.rb
knowledge_base-0.1.0 db/migrate/20140305134249_create_knowledge_base_sections.rb
knowledge_base-0.0.3 db/migrate/20140305134249_create_knowledge_base_sections.rb