Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1299906
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 19, 4:04 AM
Size
782 B
Mime Type
text/x-diff
Expires
Fri, Nov 21, 4:04 AM (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
294757
Attached To
rWEBDNS WebDNS (edet4)
View Options
diff --git a/config/database.yml.base b/config/database.yml.base
index 1c557fb..d711d3d 100644
--- a/config/database.yml.base
+++ b/config/database.yml.base
@@ -1,14 +1,22 @@
default: &default
adapter: mysql2
encoding: utf8
username: base
password: base
host: localhost
+local_development:
+ <<: *default
+ database: local_base_development
+
+local_test:
+ <<: *default
+ database: local_base_test
+
development:
<<: *default
database: base
test:
<<: *default
database: base_test
diff --git a/lib/local_db.rb b/lib/local_db.rb
new file mode 100644
index 0000000..9036d8f
--- /dev/null
+++ b/lib/local_db.rb
@@ -0,0 +1,3 @@
+module LocalDb
+ establish_connection "local_#{Rails.application.class.parent_name.downcase}_#{Rails.env}".to_sym
+end
Event Timeline
Log In to Comment