Hi, I'm trying to make a scaffold for my test application using PostgreSQL 8.3 database. and I remembered on an article for MySQL it uses :string for VARCHAR, :integer for INT, and :text for TINYTEXT, TEXT, MEDIUMTEXT, or LONGTEXT2.
Is there any datatype equivalent with PostgreSQL?
My database is like this
workers: id serial (primary key) first_name character(50) last_name character(50)
users: id serial (primary key) username character(20) password character(20) id_personnel integer(11) (foreign key related with the 'id' field of the 'workers' table)
Additionally, is there a way to import or, rather, migrate the tables' properties (their fields and datatypes) to rails? If there is any, that would be great, because my database is created and would like to use it without doing the "rake db:migrate" thing.
I hope I'm not asking too much. Thanks in advance.
Greetings... The Neurochild