socialforge/db/migrate/20160613064914_create_sylla...

13 lines
245 B
Ruby
Raw Normal View History

2016-06-14 10:38:11 +08:00
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