Skip to content

Commit

Permalink
Tried migrating to postgres, failed, reverted back
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Gehani committed Dec 18, 2013
1 parent bf36b9f commit 600d8f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ gem 'faker', "~> 1.2.0"
gem 'will_paginate', '~> 3.0.3'
gem 'bootstrap-will_paginate'
gem 'acts_as_follower'
#gem 'pg'

group :production do
gem 'pg'
gem 'rails_12factor'
gem 'pg'
end

group :development, :test do
Expand Down
5 changes: 0 additions & 5 deletions app/models/pin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ class Pin < ActiveRecord::Base
size: { less_than: 5.megabytes }
belongs_to :user
has_attached_file :image,
#:storage => :dropbox,
#:dropbox_credentials => "#{Rails.root}/config/dropbox.yml",
:styles => { :medium => "300x300>", :thumb => "100x100" }
#:dropbox_options => {
# :path => proc { |style| "#{style}/#{id}_#{image.original_filename}" }
#}

def image_remote_url=(url_value)
self.image = URI.parse(url_value) unless url_value.blank?
Expand Down
2 changes: 1 addition & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ production:
adapter: sqlite3
database: db/production.sqlite3
pool: 5
timeout: 5000
timeout: 5000

0 comments on commit 600d8f4

Please sign in to comment.