14 lines
339 B
Ruby
14 lines
339 B
Ruby
class AddTemplateCourseIdToCourses < ActiveRecord::Migration
|
|
tag :predeploy
|
|
|
|
def self.up
|
|
add_column :courses, :template_course_id, :integer, :limit => 8
|
|
add_index :courses, [:template_course_id]
|
|
end
|
|
|
|
def self.down
|
|
remove_index :courses, [:template_course_id]
|
|
remove_column :courses, :template_course_id
|
|
end
|
|
end
|