- Word import (multi-format: word, word-def, word:def, word|def) - Flashcard filter UI (swipe + keyboard arrows + Space to flip) - SM-2 spaced repetition review queue - Stimulus flashcard controller with 3D flip animation
12 lines
253 B
Ruby
12 lines
253 B
Ruby
class CreateWords < ActiveRecord::Migration[8.1]
|
|
def change
|
|
create_table :words do |t|
|
|
t.string :text, null: false
|
|
t.text :definition
|
|
t.text :example
|
|
t.timestamps
|
|
end
|
|
add_index :words, :text, unique: true
|
|
end
|
|
end
|