-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
ea79a88
commit 555e51a
Showing
8 changed files
with
87 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
class ApplicationController < ActionController::Base | ||
# Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has. | ||
allow_browser versions: :modern | ||
|
||
protect_from_forgery with: :null_session | ||
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
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,12 @@ | ||
# config/initializers/rack_cors.rb | ||
# frozen_string_literal: true | ||
|
||
Rails.application.config.middleware.insert_before 0, Rack::Cors do | ||
allow do | ||
origins '*' # Change this to your frontend's URL in production | ||
resource '*', | ||
headers: :any, | ||
methods: %i[get post options put delete], | ||
expose: %w[access-token uid client] | ||
end | ||
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
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 @@ | ||
class AddDataToGuests < ActiveRecord::Migration[7.2] | ||
def change | ||
add_column :guests, :phone, :string | ||
add_column :guests, :partner, :boolean, default: false, null: false | ||
add_column :guests, :partners_name, :string, array: true, default: [], null: false # For PostgreSQL only | ||
add_column :guests, :children_attending, :boolean, default: false, null: false | ||
add_column :guests, :children_quantity, :integer, default: 0, null: false | ||
add_column :guests, :assist_church, :boolean, default: false, null: false | ||
add_column :guests, :dietary_restrictions, :boolean, default: false, null: false | ||
add_column :guests, :dietary_restrictions_indications, :string | ||
add_column :guests, :other_food_preference, :string | ||
add_column :guests, :message, :text | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.