TokiTranslate/db/migrate/20231013015524_create_definitions.rb

12 lines
247 B
Ruby
Raw Normal View History

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