add instance tag compatibility and change railtie to load before initialize so it modified AR before the app loads (to work in production)