Chatwoot/db/migrate/20170406104018_add_default_status_conv.rb
Pranav Raj Sreepuram 2a34255e0b Initial Commit
Co-authored-by: Subin <subinthattaparambil@gmail.com>
Co-authored-by: Manoj <manojmj92@gmail.com>
Co-authored-by: Nithin <webofnithin@gmail.com>
2019-08-14 15:18:44 +05:30

20 lines
1.1 KiB
Ruby

class AddDefaultStatusConv < ActiveRecord::Migration[5.0]
def change
change_column :conversations, :status, :integer, null: false, default: 0
change_column :conversations, :inbox_id, :integer, null: false
change_column :conversations, :account_id, :integer, null: false
change_column :contacts, :inbox_id, :integer, null: false
change_column :contacts, :account_id, :integer, null: false
change_column :canned_responses, :account_id, :integer, null: false
change_column :inbox_members, :user_id, :integer, null: false
change_column :inbox_members, :inbox_id, :integer, null: false
change_column :inboxes, :channel_id, :integer, null: false
change_column :inboxes, :account_id, :integer, null: false
change_column :inboxes, :name, :string, null: false
change_column :messages, :account_id, :integer, null: false
change_column :messages, :inbox_id, :integer, null: false
change_column :messages, :conversation_id, :integer, null: false
change_column :messages, :message_type, :integer, null: false
change_column :facebook_pages, :name, :string, null: false
end
end