You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/db/migrate/20200309101753_add_link_to_...

9 lines
300 B

class AddLinkToCourseVideos < ActiveRecord::Migration[5.2]
def change
add_column :course_videos, :is_link, :boolean, default: 0
add_column :course_videos, :title, :string
add_column :course_videos, :link, :string
add_column :course_videos, :user_id, :integer, index: true
end
end