mirror of
https://github.com/Threnklyn/Klaus.git
synced 2026-05-18 20:23:28 +02:00
15 lines
296 B
Ruby
15 lines
296 B
Ruby
class CreateDocuments < ActiveRecord::Migration
|
|
def change
|
|
create_table :documents do |t|
|
|
t.references :doc_type
|
|
t.references :professor
|
|
t.references :semester
|
|
t.references :lesson
|
|
|
|
t.string :file
|
|
t.integer :position
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|