[Rails] update rails version from 2.x to 5.x in an existing very old rails application

2019-01-31 Thread raj kumar
I have a Rails app, made 10 years back in 2009 with following version: rails version = 2.0.2 ruby version = 1.8.7 Database = PostgreSQL Now what steps I should adopt in order to upgrade it to latest version of ruby and rails i.e., rails version = 5.2 ruby version = 2.6 Database = PostgreSQL As

[Rails] Ruby on Rails log file

2015-07-07 Thread Raj Kumar
I have deployed a ruby on rails app on two instances of production server, now there are two separate log file are being created for different instances. My question is how I can make a single log file for both the instances? -- You received this message because you are subscribed to the Googl

[Rails] Re: Retrieve duration (in string format) from database and convert to Ruby syntax for calculation

2013-09-20 Thread Raj Kumar
I don't think this is good idea. 1.month.to_i will return in seconds as 2592000. you can store this and while fetching you can use it as it is Time.now + 2592000 On Friday, 20 September 2013 03:30:16 UTC-4, Fai Wong wrote: > > If I store 1.month as a string in the database, how do I convert "1.mo

[Rails] Re: Retrieve duration (in string format) from database and convert to Ruby syntax for calculation

2013-09-20 Thread Raj Kumar
btw you can do it using "eval" like eval("1.month") On Friday, 20 September 2013 03:30:16 UTC-4, Fai Wong wrote: > > If I store 1.month as a string in the database, how do I convert "1.month" > into 1.month? > > This way I can use the "1.month" value stored in database to perform the > following