summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHeiko Bernlöhr <Heiko.Bernloehr@FreeIT.de>2018-01-12 11:44:52 +0100
committerHeiko Bernloehr <Heiko.Bernloehr@FreeIT.de>2018-01-12 11:53:15 +0100
commit97283c921b48a688682a1002aad08403dd08daa4 (patch)
tree14c608e1ddf573c8d1a25b8ce97fb1f645190ba8 /config
parent26a7258247e0d05688b74886984f0914c39544b4 (diff)
downloadecs-97283c921b48a688682a1002aad08403dd08daa4.tar.gz
ecs-97283c921b48a688682a1002aad08403dd08daa4.zip
Change configuration to sqlite database.
Diffstat (limited to 'config')
-rw-r--r--config/database.yml44
1 files changed, 16 insertions, 28 deletions
diff --git a/config/database.yml b/config/database.yml
index d462838..1c1a37c 100644
--- a/config/database.yml
+++ b/config/database.yml
@@ -1,37 +1,25 @@
-base: &base
- adapter: postgresql
- encoding: unicode
- pool: 5
- username: mb7
- password:
+# SQLite version 3.x
+# gem install sqlite3
#
-development:
- database: ecs_development
- <<: *base
-
- # Connect on a TCP socket. Omitted by default since the client uses a
- # domain socket that doesn't need configuration. Windows does not have
- # domain sockets, so uncomment these lines.
- #host: localhost
- #port: 5432
-
- # Schema search path. The server defaults to $user,public
- #schema_search_path: myapp,sharedapp,public
+# Ensure the SQLite 3 gem is defined in your Gemfile
+# gem 'sqlite3'
+#
+default: &default
+ adapter: sqlite3
+ pool: 5
+ timeout: 5000
- # Minimum log levels, in increasing order:
- # debug5, debug4, debug3, debug2, debug1,
- # log, notice, warning, error, fatal, and panic
- # The server defaults to notice.
- #min_messages: warning
+development:
+ <<: *default
+ database: db/development.sqlite3
# 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:
- database: ecs_test
- <<: *base
+ <<: *default
+ database: db/test.sqlite3
production:
- database: ecs_production
- <<: *base
-
+ <<: *default
+ database: db/production.sqlite3