Error: Rails – Migration – rails db:migrate 실행시 오류

ErrorMessage

Caused by:
StandardError: Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:

ErrorResolve

ActiveRecord::Migration
=>
ActiveRecord::Migration[6.0]

Migration 버전을 명시 해 줘야된다.
옛날에 생선된 코드값을 다 수정 해 줘야하는건지 모르겠다

Ruby error모음

Could not find a JavaScript runtime.
루비 Javascript runtime 오류 발생시
(rake db:schema:dump 실행시 발생, rails server실행시에 발생하는 경우도 있는듯하다)

gem ‘therubyracer’
gem ‘execjs’

gem update

sudo apt-get install nodejs

이런 명령을 실행하면 된다는 해결책들이 제시되고 있다.
우분투인경우는 아래처럼 하면 되나본데 센트에서 하는중이라 확인을 못했다.

gem들은 Gemfile에 추가해줘야할것같다.