Upgrade to rails 6 💎 (#11)

- upgraded to rails 6
- fixes various issues
This commit is contained in:
Sojan Jose
2019-08-19 01:19:57 -07:00
committed by Pranav Raj S
parent 3c32103e34
commit 52194116b3
53 changed files with 819 additions and 605 deletions

View File

@@ -2,27 +2,29 @@ account = Account.create!([
{name: "Google"}
])
User.create!([
{email: "larry@google.com", encrypted_password: "$2a$11$CIyxMCfnm.FZ4arOR83AaORbgM7i2nrMPDKzxyfXd0fpkzumrWUlq", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, account_id: account.id}
])
user = User.new({name:"lary", email: "larry@google.com", password: "123456", account_id: account.first.id})
user.skip_confirmation!
user.save!
Channel.create!([
channels = Channel.create!([
{name: "Facebook Messenger"}
])
inboxes = Inbox.create!([
{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", channel_id: 1, 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, channel_id: 1, inbox_id: 1, status: nil, assignee_id: 1, sender_id: 1}
])
Inbox.create!([
{channel_id: 1, account_id: 1, name: "Google Car"},
{channel_id: 1, account_id: 1, name: "Project Loon"}
{account_id: 1, inbox_id: 1, status: :open, assignee_id: 1, sender_id: 1}
])
InboxMember.create!([
{user_id: 1, inbox_id: 1}
])
Message.create!([
{content: "Hello", account_id: 1, channel_id: 1, inbox_id: 1, conversation_id: 1, type: nil}
{content: "Hello", account_id: 1, inbox_id: 1, conversation_id: 1, message_type: :incoming}
])