Displaying 1 result from an estimated 1 matches for "reate_table".
Did you mean:
create_table
2006 Jun 07
1
Question: Writing migration code
Just started learning on rails. The first few time I edited a migration
file it was using colons like:
create_table :table do |t|
t.column :column, :string
Now I''m working on a tutorial where it''s using quotes for the table and
column names:
reate_table "table" do |t|
t.column "column", :string
Are these two ways interchangeable ? Is there a preferred ?
TIA...