@sai43 Migraition is wrong, should be: add column :courses, :userid, :integer, array: true, null: false, default: []
@sai43
Migraition is wrong, should be:
add column :courses, :userid, :integer, array: true, null: false, default: []