TokiTranslate/db/migrate/20231013015524_create_definitions.rb
maddiebaka f5e9f3699f Add dictionary ingest and view
Dictionary json ingest to database, view populated with database contents
2023-10-12 22:24:35 -04:00

12 lines
247 B
Ruby

class CreateDefinitions < ActiveRecord::Migration[7.1]
def change
create_table :definitions do |t|
t.string :pos
t.string :definition
t.references :word, null: false, foreign_key: true
t.timestamps
end
end
end