defmodule Message do
  use Ecto.Model
  use Cobalt.ModelUtils

  queryable "messages" do
    field :body,       :string
    field :type,       :string
    field :user_id,    :integer
    field :created_at, :datetime
    belongs_to :room, Room
    belongs_to :user, User
  end

end
defmodule Message do
  use Ecto.Model
  use Cobalt.ModelUtils

  queryable "messages" do
    field :body,       :string
    field :type,       :string
    field :created_at, :datetime
    belongs_to :room, Room
    belongs_to :user, User
  end

end
Remove explicit user_id declaration from Message;
Remove explicit user_id declaration from Message;

louishawkins/mogo-chat,sashafklein/bloc-mogo,HashNuke/mogo-chat,HashNuke/mogo-chat,HashNuke/mogo-chat,louishawkins/mogo-chat,louishawkins/mogo-chat,sashafklein/bloc-mogo,di-stars/mogo-chat,di-stars/mogo-chat,sashafklein/bloc-mogo,di-stars/mogo-chat