Skip to content

Commit 83de39a

Browse files
committed
Use #create! to ensure channel creation fails noisily if it doesn't validate correctly; ensure the primary channel is assigned to the primary user.
1 parent 4338246 commit 83de39a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/kandan.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace :kandan do
4545

4646
if channel.nil?
4747
puts "Creating default channel..."
48-
channel = Channel.create :name => "Lobby"
48+
channel = Channel.create! name: 'Lobby', user: user
4949

5050
["Welcome to Kandan, the slickest chat app out there. Brought to you by the good people of KandanApp (http://kandanapp.com) and friends",
5151
"We think you'll really like Kandan, but if there's anything you would like to see, Kandan is fully open source, so you can dive into it or make suggestions.",

0 commit comments

Comments
 (0)