I'm using the Ramaze framework, and I have a migrations file.
Here's what I have in it.
create_table(:debates) do
primary_key :id
*add_foreign_key :user_id, :users*
String :question, :null => false
String :assertion, :null => false
String :type, :null => false
String :category, :null => false
Integer :views, :default=>0
String :datenumber, :null => false
String :datetimenumber, :null => false
end
I got that from the Sequel documentation associations
page<http://sequel.rubyforge.org/rdoc/files/doc/association_basics_rdoc.html>
.
I get this error in the console
C:/mowes/ruby/lib/ruby/gems/1.9.1/gems/sequel-3.36.1/lib/sequel/database/schema_generator.rb:104:in
> `merge': can't convert Symbol into Hash (TypeError)
I'm using *sqlite*.
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sequel-talk/-/sY2FZwLYzs0J.
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/sequel-talk?hl=en.