-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding tool to help us craft migrations easily enough for this (curre…
…ntly :P) non-Rails project. Funny using bundler shows through dependencies that it brings in Rails packages anyway O_o, but I guess that's better than actually running them if you don't need them for the web site. We're going to see how this works without checking in (ignoring) the schema file for now. We already have some structure captured for development, and production data backups for that environment, but that file would be useful to keep to track which migrations have been run. Maybe no need to track in the code repository, and just add it to a backup routine. Other various doc updates with notes that were recently discussed or performed.
- Loading branch information
Showing
8 changed files
with
198 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
db: | ||
migrate: dev/db/migrate | ||
schema: dev/db/schema.rb | ||
seeds: dev/db/seeds.rb | ||
config: | ||
database: dev/db/config.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
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,8 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
|
||
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | ||
|
||
gem 'standalone_migrations' | ||
gem 'mysql2' |
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,76 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
actionpack (5.2.0) | ||
actionview (= 5.2.0) | ||
activesupport (= 5.2.0) | ||
rack (~> 2.0) | ||
rack-test (>= 0.6.3) | ||
rails-dom-testing (~> 2.0) | ||
rails-html-sanitizer (~> 1.0, >= 1.0.2) | ||
actionview (5.2.0) | ||
activesupport (= 5.2.0) | ||
builder (~> 3.1) | ||
erubi (~> 1.4) | ||
rails-dom-testing (~> 2.0) | ||
rails-html-sanitizer (~> 1.0, >= 1.0.3) | ||
activemodel (5.2.0) | ||
activesupport (= 5.2.0) | ||
activerecord (5.2.0) | ||
activemodel (= 5.2.0) | ||
activesupport (= 5.2.0) | ||
arel (>= 9.0) | ||
activesupport (5.2.0) | ||
concurrent-ruby (~> 1.0, >= 1.0.2) | ||
i18n (>= 0.7, < 2) | ||
minitest (~> 5.1) | ||
tzinfo (~> 1.1) | ||
arel (9.0.0) | ||
builder (3.2.3) | ||
concurrent-ruby (1.0.5) | ||
crass (1.0.4) | ||
erubi (1.7.1) | ||
i18n (1.0.1) | ||
concurrent-ruby (~> 1.0) | ||
loofah (2.2.2) | ||
crass (~> 1.0.2) | ||
nokogiri (>= 1.5.9) | ||
method_source (0.9.0) | ||
mini_portile2 (2.3.0) | ||
minitest (5.11.3) | ||
mysql2 (0.5.1) | ||
nokogiri (1.8.2) | ||
mini_portile2 (~> 2.3.0) | ||
rack (2.0.5) | ||
rack-test (1.0.0) | ||
rack (>= 1.0, < 3) | ||
rails-dom-testing (2.0.3) | ||
activesupport (>= 4.2.0) | ||
nokogiri (>= 1.6) | ||
rails-html-sanitizer (1.0.4) | ||
loofah (~> 2.2, >= 2.2.2) | ||
railties (5.2.0) | ||
actionpack (= 5.2.0) | ||
activesupport (= 5.2.0) | ||
method_source | ||
rake (>= 0.8.7) | ||
thor (>= 0.18.1, < 2.0) | ||
rake (12.3.1) | ||
standalone_migrations (5.2.5) | ||
activerecord (>= 4.2.7, < 5.3.0) | ||
railties (>= 4.2.7, < 5.3.0) | ||
rake (>= 10.0) | ||
thor (0.20.0) | ||
thread_safe (0.3.6) | ||
tzinfo (1.2.5) | ||
thread_safe (~> 0.1) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
mysql2 | ||
standalone_migrations | ||
|
||
BUNDLED WITH | ||
1.16.1 |
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,2 @@ | ||
require 'standalone_migrations' | ||
StandaloneMigrations::Tasks.load_tasks |
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 @@ | ||
defaults: &DEFAULTS | ||
adapter: mysql | ||
database: zeldamaps | ||
username: zmaps | ||
encoding: utf8 | ||
|
||
development: | ||
<<: *DEFAULTS | ||
password: ... | ||
|
||
production: | ||
<<: *DEFAULTS | ||
password: ... | ||
socket: /var/run/mysqld/mysqld.sock |