ff1 1.2.9 → 1.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2a8f14c9ed2b368d4e72793e52de24e84a723bd50ceeddad97e0c0ab9caa150
4
- data.tar.gz: d5c0d266bd3717159f3b0c1f20456ae29b1cc85af388a1374874e135dc4a47da
3
+ metadata.gz: f91cc2803c307f979e12a8704f2c760676a9e514d6457111863c43da38d6eb67
4
+ data.tar.gz: 98b581e10e96f6ab07a67b976b90e30fa7b2d932fc70714bc724c46954a80efd
5
5
  SHA512:
6
- metadata.gz: 85719a4be80d352561ab9252c80bf11cad5ae510b3815ed26deb47365505d261753bd88bbfbe6676ec4d1cb6da992b08e1137a214a9a41224368160b754e0f80
7
- data.tar.gz: d01dceca1693ac6adc01241391f93cde14e16e06b0d8381007bef99af0a3e584d8e3e568579b149af10473918e958b8901f57ca60788fc29269ce78f14637f77
6
+ metadata.gz: 73e3388d8b48f7036531829be4206fb6133a71cdc99434741af2785a70295a87699e193527a3a5796645b169b06a29bd6d53fb30952b164cc57fd196bd8928b1
7
+ data.tar.gz: ad34fb9efbc131b0df8c3dafb049a3c495a264f1433d62d2826ca4cd12160178336af65bc53611066a10c2ab484cc55cc393cfdac2a65580bcabb94666683cca
data/lib/ff1/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module FF1
4
4
  # Current version of the FF1 gem
5
- VERSION = '1.2.9'
5
+ VERSION = '1.2.10'
6
6
  end
@@ -56,10 +56,7 @@ module Ff1
56
56
  def generate_model_migration(model_name)
57
57
  model_class_name = model_name.camelize
58
58
  @table_name = model_name.underscore.pluralize
59
- @migration_number = self.class.next_migration_number(nil)
60
59
  migration_name = "add_ff1_columns_to_#{@table_name}"
61
- @migration_file_name = "#{@migration_number}_#{migration_name}"
62
- @migration_class_name = migration_name.camelize
63
60
 
64
61
  # Check if model exists
65
62
  begin
@@ -70,7 +67,8 @@ module Ff1
70
67
 
71
68
  # Generate migration file
72
69
  migration_template 'migration.rb.erb',
73
- "db/migrate/#{@migration_file_name}.rb"
70
+ "db/migrate/#{migration_name}.rb",
71
+ migration_version: ActiveRecord::Migration.current_version
74
72
 
75
73
  say "Migration created for #{model_class_name}", :green
76
74
  say "Run 'rails db:migrate' to apply the changes", :blue
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class <%= @migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
3
+ class <%= migration_class_name %> < ActiveRecord::Migration[<%= migration_version %>]
4
4
  def change
5
5
  add_column :<%= @table_name %>, :<%= deleted_at_column %>, :datetime, null: true
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ff1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.9
4
+ version: 1.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ahmed Abdellatif