Skip to content

Commit

Permalink
Remove ActiveRecord / database
Browse files Browse the repository at this point in the history
  • Loading branch information
dmacvicar committed Dec 1, 2017
1 parent 87c7c7c commit 0d3396f
Show file tree
Hide file tree
Showing 21 changed files with 20 additions and 308 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ group :development do
# no need to load the gem via require
# we only need the rake tasks
gem 'gettext', '>= 1.9.3', :require => false
gem 'sqlite3'
end

group :production do
gem 'mysql2', '~> 0.4.9'
gem 'puma'
end

Expand Down
39 changes: 16 additions & 23 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ GEM
arel (6.0.4)
ast (2.3.0)
builder (3.2.3)
capybara (2.15.4)
capybara (2.16.1)
addressable
mini_mime (>= 0.1.3)
nokogiri (>= 1.3.3)
Expand All @@ -58,7 +58,7 @@ GEM
concurrent-ruby (1.0.5)
crack (0.4.3)
safe_yaml (~> 1.0.0)
crass (1.0.2)
crass (1.0.3)
dalli (2.7.6)
erubis (2.7.0)
execjs (2.7.0)
Expand All @@ -69,15 +69,15 @@ GEM
text (>= 1.3.0)
gettext_i18n_rails (1.8.0)
fast_gettext (>= 0.9.0)
globalid (0.4.0)
globalid (0.4.1)
activesupport (>= 4.2.0)
hashdiff (0.3.7)
hashie (3.5.6)
hike (1.2.3)
hoptoad_notifier (2.4.11)
activesupport
builder
i18n (0.9.0)
i18n (0.9.1)
concurrent-ruby (~> 1.0)
jquery-rails (4.3.1)
rails-dom-testing (>= 1, < 3)
Expand All @@ -89,30 +89,26 @@ GEM
loofah (2.1.1)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.6.6)
mime-types (>= 1.16, < 4)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mail (2.7.0)
mini_mime (>= 0.1.1)
mini_magick (4.8.0)
mini_mime (0.1.4)
mini_mime (1.0.0)
mini_portile2 (2.3.0)
minitest (5.10.3)
multi_json (1.12.2)
mysql2 (0.4.9)
nokogiri (1.8.1)
mini_portile2 (~> 2.3.0)
parallel (1.12.0)
parser (2.4.0.0)
ast (~> 2.2)
parser (2.4.0.2)
ast (~> 2.3)
pkg-config (1.2.8)
poltergeist (1.16.0)
capybara (~> 2.1)
cliver (~> 0.3.1)
websocket-driver (>= 0.2.0)
powerpack (0.1.1)
public_suffix (3.0.0)
puma (3.10.0)
public_suffix (3.0.1)
puma (3.11.0)
rack (1.6.8)
rack-test (0.6.3)
rack (>= 1.0)
Expand Down Expand Up @@ -145,7 +141,7 @@ GEM
thor (>= 0.18.1, < 2.0)
rainbow (2.2.2)
rake
rake (12.1.0)
rake (12.3.0)
rubocop (0.51.0)
parallel (~> 1.10)
parser (>= 2.3.3.1, < 3.0)
Expand All @@ -170,23 +166,22 @@ GEM
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sqlite3 (1.3.13)
text (1.3.1)
thor (0.20.0)
thread_safe (0.3.6)
tilt (1.4.1)
tzinfo (1.2.3)
tzinfo (1.2.4)
thread_safe (~> 0.1)
uglifier (3.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (1.3.0)
webmock (3.1.0)
webmock (3.1.1)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff
websocket-driver (0.7.0)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
websocket-extensions (0.1.3)
xmlhash (1.3.7)
pkg-config
xpath (2.1.0)
Expand All @@ -208,18 +203,16 @@ DEPENDENCIES
jquery-ui-rails (~> 4.2.1)
mini_magick
minitest
mysql2 (~> 0.4.9)
nokogiri
poltergeist
puma
rails (~> 4.2.8)
rails-i18n
rubocop (>= 0.47)
sass-rails (~> 4.0.0)
sqlite3
uglifier (>= 1.3.0)
webmock
xmlhash (>= 1.2.2)

BUNDLED WITH
1.15.4
1.16.0
2 changes: 0 additions & 2 deletions app/models/download_history.rb

This file was deleted.

5 changes: 4 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
require File.expand_path('../boot', __FILE__)

require 'rails/all'
require "action_controller/railtie"
require "action_mailer/railtie"
require "sprockets/railtie"
require "rails/test_unit/railtie"

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Expand Down
17 changes: 0 additions & 17 deletions config/database.yml

This file was deleted.

6 changes: 0 additions & 6 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,3 @@
rackup DefaultRackup
port ENV['PORT'] || 3000
environment ENV['RACK_ENV'] || 'development'

on_worker_boot do
# Worker specific setup for Rails 4.1+
# See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
ActiveRecord::Base.establish_connection
end
28 changes: 0 additions & 28 deletions db/migrate/001_codecs_tables.rb

This file was deleted.

15 changes: 0 additions & 15 deletions db/migrate/002_add_codec_indizes.rb

This file was deleted.

25 changes: 0 additions & 25 deletions db/migrate/003_create_orders.rb

This file was deleted.

11 changes: 0 additions & 11 deletions db/migrate/004_add_order_confirmation.rb

This file was deleted.

16 changes: 0 additions & 16 deletions db/migrate/20100422133658_create_search_histories.rb

This file was deleted.

15 changes: 0 additions & 15 deletions db/migrate/20100422141748_create_download_histories.rb

This file was deleted.

18 changes: 0 additions & 18 deletions db/migrate/20100422150000_fill_download_histories.rb

This file was deleted.

21 changes: 0 additions & 21 deletions db/migrate/20110227150000_create_delayed_jobs.rb

This file was deleted.

10 changes: 0 additions & 10 deletions db/migrate/20110317161433_add_material.rb

This file was deleted.

10 changes: 0 additions & 10 deletions db/migrate/20110722151000_drop_visitors.rb

This file was deleted.

9 changes: 0 additions & 9 deletions db/migrate/20121218194957_add_queue_to_delayed_jobs.rb

This file was deleted.

5 changes: 0 additions & 5 deletions db/migrate/20151030124119_drop_search_histories.rb

This file was deleted.

Loading

0 comments on commit 0d3396f

Please sign in to comment.