The Neurochild wrote: > But what about the datatypes of SQL? First, I have some columns with a > char datatype and I want them that way. Secondly, I saw, when I define > a :string column with a :default value, that value doesn't appear > reflected in the database. > > In the last catch, what could be wrong? I'm using Rails 1.2.6 with the > postgres 0.7.9.2008.01.28 adapter (from the ruby-pg project). > > Hope you can helpme... if you don't mind. > > Greetings. > > The Neurochild
Let's back up for a moment. I'm not sure I understand your dilemma. First, are you saying that you do your entire migration in raw SQL? Are you using create_table (or its friends) at all? Second, what is the problem with PostgreSQL? Your first message referred to that as a "catch". PostgreSQL is just as fully supported by ActiveRecord as MySQL is (as far as I know). Third, if you want to use a char instead of a character varying, you can override native_database_types to include a :char definition. Lastly, why don't you post some of your code so we can actually see what you are referring to. Peace. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

