ops_backups 0.1.3 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5998e71c3bda4e80392ef2d50e3be95280b5927bb961ab8e3a1d9a614b7788f7
4
- data.tar.gz: 8d066ea20d375d5da4156c3f7f1211c67ad6e08604a6e9c5ea1b72c028e3abfc
3
+ metadata.gz: d2e41ca2aa4e5285b3c9dc689f2a57b0b0e71fdbf740630d0f95ac9791012a6d
4
+ data.tar.gz: 4da4c1b4a7f0afcd696c55308e0300502dce4db1d3a6a092dfef5995f52e0b5b
5
5
  SHA512:
6
- metadata.gz: 9b586429bfbba9fbdb3c354743ffb51c2b197afa9ab61367c90cb1d67959bc928ef8b969e8846a43becf58e488e4e999e55dc75fef8a9607e7892ef5b7dd1324
7
- data.tar.gz: 20a218a19b9be0a87bdbf5c688c914e1a3083a6e64ec8e94438abe7f174012e15913d23764f3f041d42e0e9bf9c11772d23ed5cacd3157453ecee9cd7ec76ee4
6
+ metadata.gz: 359de7ff5df47e55a476a691bf2c8f911753e9027c5988ab18ed7c07f4af2dc96838f7099ef630a22f008124912b971556f86420c2ef0744eeb6ef6addc7b00e
7
+ data.tar.gz: 5322ddcfd04196bdf6b7c787d8310da2e03368deb7223045193b042d6f34d9e886639b095dd4c9807c991e195af2351d3cc1534e4b639cb0df93ced264984c3a
@@ -1,5 +1,7 @@
1
1
  class CreateOpsBackups < ActiveRecord::Migration[8.0]
2
2
  def change
3
+ # check if the table already exists
4
+ return if table_exists?(:ops_backups)
3
5
  create_table :ops_backups do |t|
4
6
  t.string :name, null: false
5
7
  t.string :tag, null: false
@@ -1,12 +1,13 @@
1
1
  class OpsBackups::InstallGenerator < Rails::Generators::Base
2
2
  source_root File.expand_path("templates", __dir__)
3
3
 
4
- desc "Copies migrations and adds a storage service configuration to storage.yml"
4
+ desc "Adds a storage service configuration to storage.yml"
5
5
 
6
- def copy_migrations
7
- rake "railties:install:migrations FROM=ops_backups"
8
- say "Migrations copied to your application.", :green
9
- end
6
+ # it seems the migrations already are available in the host app
7
+ # def copy_migrations
8
+ # rake "railties:install:migrations FROM=ops_backups"
9
+ # say "Migrations copied to your application.", :green
10
+ # end
10
11
 
11
12
  def add_storage_service
12
13
  storage_file = Rails.root.join("config", "storage.yml")
@@ -1,3 +1,3 @@
1
1
  module OpsBackups
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_backups
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koen Handekyn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-19 00:00:00.000000000 Z
11
+ date: 2024-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails