- 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
17 lines
394 B
Ruby
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
|