socialforge/db/migrate/20160613064914_create_sylla...

13 lines
245 B
Ruby

class CreateSyllabuses < ActiveRecord::Migration
def change
create_table :syllabuses do |t|
t.string :title
t.text :description
t.references :user
t.timestamps
end
add_index :syllabuses, :user_id
end
end