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>
17 lines
426 B
Ruby
17 lines
426 B
Ruby
class CreateKbasePortals < ActiveRecord::Migration[6.0]
|
|
def change
|
|
create_table :kbase_portals do |t|
|
|
t.integer :account_id, null: false
|
|
t.string :name, null: false
|
|
t.string :slug, null: false
|
|
t.string :custom_domain
|
|
t.string :color
|
|
t.string :homepage_link
|
|
t.string :page_title
|
|
t.text :header_text
|
|
|
|
t.index :slug, unique: true
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|