Just remember to do this kind to double check every where you are checking for subdomain. Also you need to be shure your webserver (nginx for example) accepts all domains (this is the default if you have server by your self, do not know how this works on heroku)
If anyone are looking for a way to exclude new tables from the multitenant migration (i.e. Only create the new table in the public schema). This solved the problem for me:
ruby
ifActiveRecord::Base.connection.current_schema == 'public'Your migration
end
Hi Ryan
Just wanted to say thank you very much for an excellent video. Hope you are doing well and that you soon have enough energy to return to railscast.
It is actually not that hard to do. I was worried about this step but the solution was straight forward.
Just remember to do this kind to double check every where you are checking for subdomain. Also you need to be shure your webserver (nginx for example) accepts all domains (this is the default if you have server by your self, do not know how this works on heroku)
If anyone are looking for a way to exclude new tables from the multitenant migration (i.e. Only create the new table in the public schema). This solved the problem for me:
Complete example
Thank you!
If i deploy this application. will i be able to do the same change to a similar file on a linux server?