Files
project-work/worker-toolkit-stocks-in-the-future/repo/db/migrate/20240312195258_create_classrooms.rb
Eric Bell 2854619bc9 chore: init commit
in worker.../repo/GITFOLDER.zip is the .git folder.
2026-08-11 14:44:09 -04:00

13 lines
300 B
Ruby

class CreateClassrooms < ActiveRecord::Migration[7.1]
def change
create_table :classrooms do |t|
t.string :name
t.references :year, null: false, foreign_key: true
t.references :school, null: false, foreign_key: true
t.string :grade
t.timestamps
end
end
end