Re: [Rails] Rails & Postgres sandbox

2018-04-14 Thread Ralph Shnelvar
Title: Re: [Rails] Rails & Postgres sandbox Hassan, Why is it orthogonal? And, yes, I understand what orthogonal means in this context. And thank you for pointing out ActiveRecord::ConnectionHandling.establish_connection. Ralph Saturday, April 14, 2018, 8:15:13 PM, you wrote: HS> On Sat,

Re: [Rails] Rails & Postgres sandbox

2018-04-14 Thread Hassan Schroeder
On Sat, Apr 14, 2018 at 12:28 PM, Ralph Shnelvar wrote: > I have a collection of Postgres tables I want my users to be able to access > (share)but not modify on my Rails website . I want each of them to be able > to extract data from the tables using whatever SQL they wish and

[Rails] Re: Rails & Postgres sandbox

2018-04-14 Thread koulikoff
Look at https://github.com/jeremyevans/sequel On Saturday, April 14, 2018 at 9:29:03 PM UTC+2, Ralph Shnelvar wrote: > > Ruby, > > I have a collection of Postgres tables I want my users to be able to > access (share)but not modify on my Rails website . I want each of them to > be able to

[Rails] Rails & Postgres sandbox

2018-04-14 Thread Ralph Shnelvar
Title: Rails & Postgres sandbox Ruby, I have a collection of Postgres tables I want my users to be able to access (share)but not modify on my Rails website .  I want each of them to be able to extract data from the tables using whatever SQL they wish and for each user not to be able to interact

[Rails] Re: Is there any tool to convet ActiveRecord 2.3.5 statement to sql

2018-04-14 Thread snappa
Should be able to see the SQL in the debug log if you have it enabled. On Saturday, April 14, 2018 at 2:22:46 AM UTC-4, nyt1972 wrote: > > Hello, > > I want to ask Is there any tool to convet ActiveRecord 2.3.5 statement to > sql? > -- You received this message because you are subscribed to

Re: [Rails] Is there any tool to convet ActiveRecord 2.3.5 statement to sql

2018-04-14 Thread Hassan Schroeder
On Fri, Apr 13, 2018 at 10:13 PM, nyt1972 wrote: > I want to ask Is there any tool to convet ActiveRecord 2.3.5 statement to > sql? If it's a one-time or occasional thing, just execute the statement and grab the query SQL from your logs. There are also `to_sql()` methods in

[Rails] Re: Is there any tool to convet ActiveRecord 2.3.5 statement to sql

2018-04-14 Thread kaine wright
This may help http://guides.rubyonrails.org/v2.3.11/active_record_querying.html what is it you are trying to convert. Do you mean you wish to add a column to your database to store information if so you would use your model and migrations -- You received this message because you are

[Rails] Is there any tool to convet ActiveRecord 2.3.5 statement to sql

2018-04-14 Thread nyt1972
Hello, I want to ask Is there any tool to convet ActiveRecord 2.3.5 statement to sql? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to