trustieforge/db/migrate/20140530102014_add_status_t...

10 lines
302 B
Ruby
Raw Normal View History

2014-05-30 10:48:06 +08:00
class AddStatusToCourse < ActiveRecord::Migration
def change
add_column :courses, :description, :text
add_column :courses, :status, :int ,default: 1
add_column :courses, :attachmenttype, :int ,default: 2
add_column :courses, :lft, :int
add_column :courses, :rgt, :int
end
end