http://www.postgresql.org/download/linux/ubuntu/
TL;DR
sudo pg_dropcluster 9.4 main --stop
sudo pg_upgradecluster 9.3 main
sudo pg_dropcluster 9.3 main
import os | |
import pathlib | |
import logging | |
from telegram.ext import Updater | |
from telegram.ext import Filters | |
from telegram.ext import CommandHandler | |
from telegram.ext import MessageHandler | |
# This is the Telegram Bot that prints all input documents. It can print pdf and txt files. | |
# Before sending files for printing user must enter the password by command "/auth <password>". |
http://www.postgresql.org/download/linux/ubuntu/
TL;DR
sudo pg_dropcluster 9.4 main --stop
sudo pg_upgradecluster 9.3 main
sudo pg_dropcluster 9.3 main
class Product < ActiveRecord::Base | |
has_many :material_product_mappings, :dependent => :destroy, :inverse_of => :product | |
has_many :materials, :through => :material_product_mappings, :autosave => true | |
accepts_nested_attributes_for :material_product_mappings # really needed feature | |
#... | |
end |