Skip to content

Commit

Permalink
cp
Browse files Browse the repository at this point in the history
  • Loading branch information
rromanchuk committed Dec 31, 2023
1 parent 968ed22 commit 8c93096
Show file tree
Hide file tree
Showing 84 changed files with 8 additions and 1,030 deletions.
6 changes: 5 additions & 1 deletion personal/app/models/application_record.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
class ApplicationRecord < ActiveRecord::Base
primary_abstract_class

self.implicit_order_column = 'created_at'

scope :oldest, ->(column = implicit_order_column) { order(column => :asc) }
scope :recent, ->(column = implicit_order_column) { order(column => :desc) }
scope :random, -> { order(Arel.sql('RANDOM()')) }

self.abstract_class = true

connects_to database: { writing: :primary, reading: :primary }

end
19 changes: 0 additions & 19 deletions personal/app/models/post.rb

This file was deleted.

2 changes: 1 addition & 1 deletion personal/app/models/ro/application_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module Ro
class ApplicationRecord < ::ApplicationRecord
self.abstract_class = true

connects_to database: { writing: :ro }
connects_to database: { writing: :ro, reading: :ro }
end
end
2 changes: 1 addition & 1 deletion personal/app/models/ryan_romanchuk/application_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module RyanRomanchuk
class ApplicationRecord < ::ApplicationRecord
self.abstract_class = true

connects_to database: { writing: :ryan_romanchuk }
connects_to database: { writing: :ryan_romanchuk, reading: :ryan_romanchuk }
end
end
2 changes: 1 addition & 1 deletion personal/app/models/tds/application_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module Tds
class ApplicationRecord < ::ApplicationRecord
self.abstract_class = true

connects_to database: { writing: :wx }
connects_to database: { writing: :wx, reading: :wx }
end
end
13 changes: 0 additions & 13 deletions personal/db/migrate/20220416005025_create_posts.rb

This file was deleted.

30 changes: 0 additions & 30 deletions personal/db/migrate/20220416012142_gutentag_tables.gutentag.rb

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions personal/db/migrate/20220416012144_no_null_counters.gutentag.rb

This file was deleted.

9 changes: 0 additions & 9 deletions personal/db/migrate/20220417222217_create_users.rb

This file was deleted.

6 changes: 0 additions & 6 deletions personal/db/migrate/20220419065022_add_slug_to_users.rb

This file was deleted.

6 changes: 0 additions & 6 deletions personal/db/migrate/20220419065040_add_slug_to_posts.rb

This file was deleted.

21 changes: 0 additions & 21 deletions personal/db/migrate/20220419065117_create_friendly_id_slugs.rb

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions personal/db/migrate/20220421233045_add_username_to_users.rb

This file was deleted.

33 changes: 0 additions & 33 deletions personal/db/migrate/20220422094735_fig_taggings.rb

This file was deleted.

33 changes: 0 additions & 33 deletions personal/db/migrate/20220422095242_fig_taggings2.rb

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions personal/db/migrate/20220423051330_create_pg_search_documents.rb

This file was deleted.

9 changes: 0 additions & 9 deletions personal/db/migrate/20220428074500_create_videos.rb

This file was deleted.

6 changes: 0 additions & 6 deletions personal/db/migrate/20220428075543_create_videos2.rb

This file was deleted.

9 changes: 0 additions & 9 deletions personal/db/migrate/20220428093506_create_images.rb

This file was deleted.

5 changes: 0 additions & 5 deletions personal/db/migrate/20220428093737_create_image_obs.rb

This file was deleted.

11 changes: 0 additions & 11 deletions personal/db/migrate/20220428191854_add_meta_data_columns.rb

This file was deleted.

7 changes: 0 additions & 7 deletions personal/db/migrate/20220430012521_remove_columns.rb

This file was deleted.

5 changes: 0 additions & 5 deletions personal/db/migrate/20220516065126_add_published_column.rb

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 8c93096

Please sign in to comment.