701eccb35c
- Introduce models & migrations for portals, categories, folders and articles - CRUD API for portals - CRUD API for categories Addresses: #714 Co-authored-by: Sojan <sojan@pepalo.com>
13 lines
306 B
Ruby
13 lines
306 B
Ruby
class CreateKbaseCategories < ActiveRecord::Migration[6.0]
|
|
def change
|
|
create_table :kbase_categories do |t|
|
|
t.integer :account_id, null: false
|
|
t.integer :portal_id, null: false
|
|
t.string :name
|
|
t.text :description
|
|
t.integer :position
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|