Skip to content

Instantly share code, notes, and snippets.

Install PostgreSQL 10 on Ubuntu

This is a quick guide to install PostgreSQL 10 - tested on Ubuntu 16.04 but likely can be used for Ubuntu 14.04 and 17.04 as well, with one minor modification detailed below.

(Optional) Uninstall other versions of postgres

To make life simple, remove all other versions of Postgres. Obviously not required, but again, makes life simple.

dpkg -l | grep postgres
@NeverHappened
NeverHappened / theater.rb
Created December 15, 2017 13:21
MovieTheater
class User
has_many :tickets
end
class Hall < ActiveRecord
has_many :movie_sessions
end
class Movie < ActiveRecord
validates_presence_of :name