diff --git a/config/database.yml b/config/database.yml index 51a4dd4..20ead66 100644 --- a/config/database.yml +++ b/config/database.yml @@ -1,25 +1,14 @@ -# SQLite version 3.x -# gem install sqlite3 -# -# Ensure the SQLite 3 gem is defined in your Gemfile -# gem 'sqlite3' development: - adapter: sqlite3 - database: db/development.sqlite3 + adapter: postgresql + database: my_images_dev pool: 5 timeout: 5000 -# Warning: The database defined as "test" will be erased and -# re-generated from your development database when you run "rake". -# Do not set this db to the same as development or production. test: - adapter: sqlite3 - database: db/test.sqlite3 + adapter: postgresql + database: my_images_test pool: 5 timeout: 5000 production: - adapter: sqlite3 - database: db/production.sqlite3 - pool: 5 - timeout: 5000 + url: <%= ENV['DATABASE_URL'] %> diff --git a/db/schema.rb b/db/schema.rb index 1e4ca7e..1262dd0 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -12,6 +12,9 @@ ActiveRecord::Schema.define(version: 2014_03_24_170840) do + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + create_table "images", force: :cascade do |t| t.integer "user_id" t.string "image_uid"