Re: [Rails] Re: Building rails app on existing Postgres Database

2017-09-01 Thread Colin Law
On 1 September 2017 at 17:08, Ben Edwards wrote: > Great, so youn dont need to give rails a model file? I suggest you start by working right through a good tutorial such as railstutorial.org, which is free to use online. That will show you the basics of Rails and will save you a lot of time in th

Re: [Rails] Re: Building rails app on existing Postgres Database

2017-09-01 Thread Hassan Schroeder
On Fri, Sep 1, 2017 at 9:08 AM, Ben Edwards wrote: > Great, so youn dont need to give rails a model file? You will have to create a model file (and controller, and views), yes, but for exploratory/testing purposes you can define a class (model) right in the console and it will work. -- Hassan S

[Rails] Re: Building rails app on existing Postgres Database

2017-09-01 Thread Ben Edwards
Great, so youn dont need to give rails a model file? -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To pos

Re: [Rails] Re: Building rails app on existing Postgres Database

2017-09-01 Thread Hassan Schroeder
On Fri, Sep 1, 2017 at 8:25 AM, Ben Edwards wrote: > So I basicaly recreate the tables from scratch manualy, using rails to > create them. NO! *IF* you have columns that don't adhere to AR conventions you can rename them manually but that's trivial and won't affect your existing data. Seriously,

[Rails] Re: Building rails app on existing Postgres Database

2017-09-01 Thread Ben Edwards
So I basicaly recreate the tables from scratch manualy, using rails to create them. I was worried importing the data may be a bit fiddely if I did this (quess I can force rails to use specific data types). Was hoping there was a way rails could help with this. It may be only a few tables but