spree/spree — Issue #1071: PGError on a fresh new install
Author: sbounmy
Created: 2012-02-02 02:35:18+00:00
State: open

Hi,

Creating a new fresh app with postgresql produce :

```
rails new mystore -d postgresql
cd mystore
rails g spree:site
```

```
PGError: ERROR: relation "spree_activators" does not exist (ActiveRecord::StatementInvalid)
LINE 4: WHERE a.attrelid = '"spree_activators"'::regcla...
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"spree_activators"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
```

full backtrace: https://gist.github.com/1721027