russian-book-story/db/migrate/20260425153001_create_story_pages.rb
viktorvsk f3d33199f0
Some checks failed
CI / Lint & Test (push) Has been cancelled
Deploy Status Page / Build & Deploy (push) Has been cancelled
Волшебная Книга: Russian book storytelling app
- Book-styled UI with parchment aesthetic and Russian navigation
- Characters model with Konva.js 2D canvas drawing (draggable shapes)
- StoryPages model with character association and page navigation
- Stimulus controllers: canvas (editor) + canvas-preview (read-only)
- Full Russian interface: all labels, buttons, flash messages in Russian
2026-04-25 15:29:15 +00:00

17 lines
394 B
Ruby

# frozen_string_literal: true
class CreateStoryPages < ActiveRecord::Migration[8.0]
def change
create_table :story_pages do |t|
t.string :title
t.text :content, null: false, default: ""
t.integer :position, null: false, default: 0
t.references :character, null: true, foreign_key: true
t.timestamps
end
add_index :story_pages, :position
end
end