How to use Multiple Databases in Rails 6.0

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 15

  • @bondhansarker8009
    @bondhansarker8009 2 года назад +1

    Can we use different type of databases? I mean to say can we use relational and non-relational databases in the same app?

  • @julianpinzoneslava
    @julianpinzoneslava 5 лет назад

    Great video! I’m currently struggling with the setup of replicas in development to track a bug I found in my staging environment regarding manual connection switching. Any advice on how to do this? Is there a rails way to do it? I’m currently exploring docker for this but it has a very steep learning curve

    • @GorailsTV
      @GorailsTV  5 лет назад +1

      Docker might be handy here to make it easier to run two servers at once. I haven't setup a replica in Docker before, but for your own postgres servers, you typically need to edit the configs.
      Otherwise you could run two postgres servers on your local machine and just setup two different configs and start each server pointing to the different configs: blog.raveland.org/post/postgresql_sr/

  • @kieranklaassen
    @kieranklaassen 4 года назад +2

    Thanks again for a great video!

    • @GorailsTV
      @GorailsTV  4 года назад +1

      Glad you liked it, thanks for watching! 🙏

  • @soyun81
    @soyun81 Год назад

    amazing video !

  • @emmannweb
    @emmannweb 3 года назад

    Nice work! i'm wondering if you could make a video on datagrid gem with rails 6. i would be grateful

  • @dikudas2417
    @dikudas2417 2 года назад

    Hi GoRails, I am new to rails...I did exactly same as your video but when I run rails db:create:all, the replica databases were not created only the primary database and the animal database were created. I have mentioned writing and reading role in the model also but still I am unable to find the replica databases which I define as by replica: true.
    Please help

  • @lennyy8330
    @lennyy8330 5 лет назад +1

    Your videos are really helpful. Thanks a lot 🙏

    • @GorailsTV
      @GorailsTV  5 лет назад

      Glad you’re enjoying them! 🙌

  • @pradeepn.p4125
    @pradeepn.p4125 4 года назад

    I have 2 existing databases, basically legacy databases. I am trying to connect both the database using the same way that you have done, it is not working. What would be the problem?
    I am using Rails 6

  • @Ashton351
    @Ashton351 3 года назад

    Is this database.yml syntax documented anywhere?

  • @dmytrokharytonenko5016
    @dmytrokharytonenko5016 5 лет назад

    Thanks!

  • @LucivaldoCastroCasteloBranco
    @LucivaldoCastroCasteloBranco 5 лет назад

    You could make a friendlier price for us Brazilians, as some other course sites do. I want to subscribe, but I would like the price to be a little lower.

    • @GorailsTV
      @GorailsTV  5 лет назад +1

      Send me an email! I'm happy to help.