db/migrate/20150316092310_messages_add_columns_server_and_key.rb
# change message to support server to server messages
change message to support server to server messages
change message to support server to server messages
def up
    Message.delete_all
    add_column :messages, :server, :boolean, :null => false
    add_column :messages, :key, :text
    change_column :messages, :from_sha256, :string, :limit => 45, :null => true
    change_column :messages, :to_sha256, :string, :limit => 45, :null => true
  end
def up Message . delete_all add_column :messages , :server , :boolean , :null => false add_column :messages , :key , :text change_column :messages , :from_sha256 , :string , :limit => 45 , :null => true change_column :messages , :to_sha256 , :string , :limit => 45 , :null => true end
change message to support server to server messages
change message to support server to server messages