I am writing a migration:
migration 1, :create_accounts do
up do
create_table :accounts do
:wcd_guid
column :wcd_guid, String, :length => 32, :primary_key => true
column :id, String, :length => 32, :not_null => true
end
end

down do
drop_table :accounts
end
end
it does not make wcd_guid a primary key, nor does it makes id not null 
(MySQL). I tried everything :key => true, :required => true, none of them 
seem to work. How do I specify all these attributes?

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/datamapper/-/8kC_rXi57WkJ.
To post to this group, send email to datamapper@googlegroups.com.
To unsubscribe from this group, send email to 
datamapper+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to