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:
|
development:
|
||||||
adapter: sqlite3
|
adapter: postgresql
|
||||||
database: db/development.sqlite3
|
database: my_images_dev
|
||||||
pool: 5
|
pool: 5
|
||||||
timeout: 5000
|
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:
|
test:
|
||||||
adapter: sqlite3
|
adapter: postgresql
|
||||||
database: db/test.sqlite3
|
database: my_images_test
|
||||||
pool: 5
|
pool: 5
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
|
|
||||||
production:
|
production:
|
||||||
adapter: sqlite3
|
url: <%= ENV['DATABASE_URL'] %>
|
||||||
database: db/production.sqlite3
|
|
||||||
pool: 5
|
|
||||||
timeout: 5000
|
|
||||||
|
|||||||
@ -12,6 +12,9 @@
|
|||||||
|
|
||||||
ActiveRecord::Schema.define(version: 2014_03_24_170840) do
|
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|
|
create_table "images", force: :cascade do |t|
|
||||||
t.integer "user_id"
|
t.integer "user_id"
|
||||||
t.string "image_uid"
|
t.string "image_uid"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user