-
Notifications
You must be signed in to change notification settings - Fork 38
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
9b0c3cc
commit 026d1fe
Showing
5 changed files
with
13 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,3 @@ | ||
## This file should ensure the existence of records required to run the application in every environment (production, | ||
# development, test). The code here should be idempotent so that it can be executed at any point in every environment. | ||
# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup). | ||
# | ||
# Example: | ||
# | ||
# ["Action", "Comedy", "Drama", "Horror"].each do |genre_name| | ||
# MovieGenre.find_or_create_by!(name: genre_name) | ||
# end | ||
|
||
# open the yaml file in ../data/rails_conf_2021.yml | ||
|
||
# scp [email protected]:/var/lib/docker/volumes/storage/_data/production_rubyvideo.sqlite3 /storage/backup/production_rubyvideo.sqlite3 | ||
|
||
# if Rails.env.development? | ||
# SpeakerTalk.delete_all | ||
# Speaker.delete_all | ||
# Talk.delete_all | ||
# Event.delete_all | ||
# Organisation.delete_all | ||
# end | ||
|
||
speakers = YAML.load_file("#{Rails.root}/data/speakers.yml") | ||
organisations = YAML.load_file("#{Rails.root}/data/organisations.yml") | ||
videos_to_ignore = YAML.load_file("#{Rails.root}/data/videos_to_ignore.yml") | ||
|
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