Displaying 1 result from an estimated 1 matches for "line_msg".
Did you mean:
line_msgs
2006 Jul 13
1
model navigation problem with foreign key
...se
t.column "updated", :float, :default => 0.0, :null => false
t.column "lines", :integer, :limit => 8, :default => 0, :null =>
false
t.column "created_at", :datetime
end
and another in migration like this
def self.up
create_table :line_msgs do |t|
t.column :sender_nick, :string
t.column :content, :string
t.column :room_id, :integer, :null => false
t.column :send_at, :timestamp
end
execute "alter table line_msgs
add constraint fk_line_msg_rooms
forei...