How to use Multiple Databases in Rails 6.0

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 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?

  • @kieranklaassen
    @kieranklaassen 5 ปีที่แล้ว +2

    Thanks again for a great video!

    • @GorailsTV
      @GorailsTV  5 ปีที่แล้ว +1

      Glad you liked it, thanks for watching! 🙏

  • @soyun81
    @soyun81 ปีที่แล้ว

    amazing video !

  • @lennyy8330
    @lennyy8330 5 ปีที่แล้ว +1

    Your videos are really helpful. Thanks a lot 🙏

    • @GorailsTV
      @GorailsTV  5 ปีที่แล้ว

      Glad you’re enjoying them! 🙌

  • @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

  • @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?

  • @emmannweb
    @emmannweb 3 ปีที่แล้ว

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

  • @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/

  • @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.