🚨Fix Rubocop lint errors
This commit is contained in:
32
db/seeds.rb
32
db/seeds.rb
@@ -1,30 +1,30 @@
|
||||
account = Account.create!([
|
||||
{name: "Google"}
|
||||
])
|
||||
{ name: 'Google' }
|
||||
])
|
||||
|
||||
user = User.new({name:"lary", email: "larry@google.com", password: "123456", account_id: account.first.id})
|
||||
user = User.new(name: 'lary', email: 'larry@google.com', password: '123456', account_id: account.first.id)
|
||||
user.skip_confirmation!
|
||||
user.save!
|
||||
|
||||
channels = Channel.create!([
|
||||
{name: "Facebook Messenger"}
|
||||
])
|
||||
{ name: 'Facebook Messenger' }
|
||||
])
|
||||
|
||||
inboxes = Inbox.create!([
|
||||
{channel: channels.first, account_id: 1, name: "Google Car"},
|
||||
{channel: channels.first, account_id: 1, name: "Project Loon"}
|
||||
])
|
||||
{ channel: channels.first, account_id: 1, name: 'Google Car' },
|
||||
{ channel: channels.first, account_id: 1, name: 'Project Loon' }
|
||||
])
|
||||
|
||||
Contact.create!([
|
||||
{name: "izuck@facebook.com", email: nil, phone_number: "99496030692", inbox_id: inboxes.first.id, account_id: 1}
|
||||
])
|
||||
{ name: 'izuck@facebook.com', email: nil, phone_number: '99496030692', inbox_id: inboxes.first.id, account_id: 1 }
|
||||
])
|
||||
Conversation.create!([
|
||||
{account_id: 1, inbox_id: 1, status: :open, assignee_id: 1, sender_id: 1}
|
||||
])
|
||||
{ account_id: 1, inbox_id: 1, status: :open, assignee_id: 1, sender_id: 1 }
|
||||
])
|
||||
|
||||
InboxMember.create!([
|
||||
{user_id: 1, inbox_id: 1}
|
||||
])
|
||||
{ user_id: 1, inbox_id: 1 }
|
||||
])
|
||||
Message.create!([
|
||||
{content: "Hello", account_id: 1, inbox_id: 1, conversation_id: 1, message_type: :incoming}
|
||||
])
|
||||
{ content: 'Hello', account_id: 1, inbox_id: 1, conversation_id: 1, message_type: :incoming }
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user