-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
193 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) | ||
|
||
require 'bundler/setup' # Set up gems listed in the Gemfile. | ||
require 'bootsnap/setup' # Speed up boot time by caching expensive operations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
# ApplicationController.renderer.defaults.merge!( | ||
# http_host: 'example.org', | ||
# https: false | ||
# ) | ||
# ActiveSupport::Reloader.to_prepare do | ||
# ApplicationController.renderer.defaults.merge!( | ||
# http_host: 'example.org', | ||
# https: false | ||
# ) | ||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Be sure to restart your server when you modify this file. | ||
# | ||
# This file contains migration options to ease your Rails 5.2 upgrade. | ||
# | ||
# Once upgraded flip defaults one by one to migrate to the new default. | ||
# | ||
# Read the Guide for Upgrading Ruby on Rails for more info on each option. | ||
|
||
# Make Active Record use stable #cache_key alongside new #cache_version method. | ||
# This is needed for recyclable cache keys. | ||
# Rails.application.config.active_record.cache_versioning = true | ||
|
||
# Use AES-256-GCM authenticated encryption for encrypted cookies. | ||
# Also, embed cookie expiry in signed or encrypted cookies for increased security. | ||
# | ||
# This option is not backwards compatible with earlier Rails versions. | ||
# It's best enabled when your entire app is migrated and stable on 5.2. | ||
# | ||
# Existing cookies will be converted on read then written with the new scheme. | ||
# Rails.application.config.action_dispatch.use_authenticated_cookie_encryption = true | ||
|
||
# Use AES-256-GCM authenticated encryption as default cipher for encrypting messages | ||
# instead of AES-256-CBC, when use_authenticated_message_encryption is set to true. | ||
# Rails.application.config.active_support.use_authenticated_message_encryption = true | ||
|
||
# Add default protection from forgery to ActionController::Base instead of in | ||
# ApplicationController. | ||
# Rails.application.config.action_controller.default_protect_from_forgery = true | ||
|
||
# Store boolean values are in sqlite3 databases as 1 and 0 instead of 't' and | ||
# 'f' after migrating old data. | ||
# Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true | ||
|
||
# Use SHA-1 instead of MD5 to generate non-sensitive digests, such as the ETag header. | ||
# Rails.application.config.active_support.use_sha1_digests = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
%w( | ||
%w[ | ||
.ruby-version | ||
.rbenv-vars | ||
tmp/restart.txt | ||
tmp/caching-dev.txt | ||
).each { |path| Spring.watch(path) } | ||
].each { |path| Spring.watch(path) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
test: | ||
service: Disk | ||
root: <%= Rails.root.join("tmp/storage") %> | ||
|
||
local: | ||
service: Disk | ||
root: <%= Rails.root.join("storage") %> | ||
|
||
amazon: | ||
service: S3 | ||
access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %> | ||
secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %> | ||
region: <%= ENV['AWS_REGION'] %> | ||
bucket: <%= ENV['AWS_S3_BUCKET'] %> |
28 changes: 28 additions & 0 deletions
28
db/migrate/20180330175050_create_active_storage_tables.active_storage.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This migration comes from active_storage (originally 20170806125915) | ||
class CreateActiveStorageTables < ActiveRecord::Migration[5.2] | ||
def change | ||
add_column :allocator, :logo, :string | ||
|
||
create_table :active_storage_blobs do |t| | ||
t.string :key, null: false | ||
t.string :filename, null: false | ||
t.string :content_type | ||
t.text :metadata | ||
t.bigint :byte_size, null: false | ||
t.string :checksum, null: false | ||
t.datetime :created_at, null: false | ||
|
||
t.index [ :key ], unique: true | ||
end | ||
|
||
create_table :active_storage_attachments do |t| | ||
t.string :name, null: false | ||
t.references :record, null: false, polymorphic: true, index: false | ||
t.references :blob, null: false | ||
|
||
t.datetime :created_at, null: false | ||
|
||
t.index [ :record_type, :record_id, :name, :blob_id ], name: "index_active_storage_attachments_uniqueness", unique: true | ||
end | ||
end | ||
end |
Oops, something went wrong.