Sha256: 40b898d9bd6708bb292d75c86180a0c56fb40421993053afd57b94324a2cdb0e
Contents?: true
Size: 395 Bytes
Versions: 3
Compression:
Stored size: 395 Bytes
Contents
class CreateKnowledgeBaseCategories < ActiveRecord::Migration def change create_table :knowledge_base_categories do |t| t.string :title t.string :slug t.text :description t.references :category, index: true t.integer :position t.datetime :published_at t.timestamps end add_index :knowledge_base_categories, :slug, unique: true end end
Version data entries
3 entries across 3 versions & 1 rubygems