migrated to mysql in production mode
This commit is contained in:
parent
8fe25baf34
commit
1b22b56007
2
Gemfile
2
Gemfile
@ -7,6 +7,8 @@ gem 'rails', '3.1.0'
|
||||
# gem 'rails', :git => 'git://github.com/rails/rails.git'
|
||||
|
||||
gem 'sqlite3'
|
||||
gem 'mysql2'
|
||||
gem 'yaml_db'
|
||||
|
||||
# Asset template engines
|
||||
gem 'sass-rails', "~> 3.1.0.rc"
|
||||
|
@ -81,7 +81,7 @@ class Admin::PrescriptionsController < ApplicationController
|
||||
end
|
||||
|
||||
def find_prescriptions
|
||||
@prescriptions = Prescription.order("read ASC, done ASC, created_at DESC")
|
||||
@prescriptions = Prescription.order("'read ASC', 'done ASC', 'created_at DESC'")
|
||||
@last = Prescription.order("created_at DESC").first
|
||||
end
|
||||
|
||||
|
@ -16,7 +16,10 @@ test:
|
||||
timeout: 5000
|
||||
|
||||
production:
|
||||
adapter: sqlite3
|
||||
database: db/production.sqlite3
|
||||
adapter: mysql2
|
||||
encoding: utf8
|
||||
database: boissier_app
|
||||
pool: 5
|
||||
timeout: 5000
|
||||
username: boissier_app
|
||||
password: boissierprod
|
||||
socket: /var/run/mysqld/mysqld.sock
|
||||
|
Loading…
x
Reference in New Issue
Block a user