mirror of
https://github.com/danbee/my-images
synced 2025-03-04 08:49:05 +00:00
Switch to PotgreSQL
This commit is contained in:
parent
b2bff9f104
commit
b11e37ef46
@ -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'] %>
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user