update rails version and use a better way to define scopes with sequel.