Skip to content

Instantly share code, notes, and snippets.

@marine44
marine44 / paperclip_migrations.rb
Created March 3, 2011 04:46 — forked from jystewart/paperclip_migrations.rb
edit to fix: private method `copy' called for File:Class
module PaperclipMigrations
def self.included(base)
base.extend ClassMethods
end
module ClassMethods
def add_paperclip_fields(table, prefix)
add_column table, "#{prefix}_file_name", :string
add_column table, "#{prefix}_content_type", :string
#!/bin/bash
# Unattended REE/Passenger installation
# Source: http://weblog.brightlight-ict.nl/2008/12/unattended-passenger-ruby-enterprise-installation-on-ubuntu-8/
# 15/03/09 Updated to use latest r.e.e. and passenger 2.1 and rewrote bits thanks to the comments left on my blog. Thanks guys
# 6.3.2010 Updated to use Passenger 2.2.11, REE 1.8.7, MYSql, Sendmail, Set the hostname, Reset root password, set timezone - ready for a fresk Ubuntu Slice on Slicehost
 
if [ "$(whoami)" != "root" ]; then
echo "You need to be root to run this!"
  exit 2
fi
#!/bin/bash
# Unattended REE/Passenger installation
# Source: http://weblog.brightlight-ict.nl/2008/12/unattended-passenger-ruby-enterprise-installation-on-ubuntu-8/
# 15/03/09 Updated to use latest r.e.e. and passenger 2.1 and rewrote bits thanks to the comments left on my blog. Thanks guys
if [ "$(whoami)" != "root" ]; then
echo "You need to be root to run this!"
exit 2
fi