Sha256: fd4854905e7603b44d498c72a2801578dacbc4e1819ac17163420dbadfc7d1e8

Contents?: true

Size: 302 Bytes

Versions: 3

Compression:

Stored size: 302 Bytes

Contents

class CreateKnowledgeBaseArticles < ActiveRecord::Migration
  def change
    create_table :knowledge_base_articles do |t|
      t.string :title
      t.string :slug
      t.text :description
      t.references :category, index: true
      t.datetime :published_at

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
knowledge_base-0.2.0 db/migrate/20140303152945_create_knowledge_base_articles.rb
knowledge_base-0.1.0 db/migrate/20140303152945_create_knowledge_base_articles.rb
knowledge_base-0.0.3 db/migrate/20140303152945_create_knowledge_base_articles.rb