13 lines
245 B
Ruby
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
|