old_sql 1.46.0 → 1.47.0

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.
@@ -19,8 +19,8 @@ module OldSql
19
19
 
20
20
  def create_migration_file
21
21
  migration_template 'add_devise_to_users_migration.rb', "db/migrate/add_devise_to_#{model_name}.rb" rescue p $!.message
22
- gsub_file "db/migrate/#{@migration_number}_add_devise_to_#{model_name}.rb", /device_model/, "#{model_name}"
23
- gsub_file "db/migrate/#{@migration_number}_add_devise_to_#{model_name}.rb", /DeviceModel/, "#{model_name.capitalize}"
22
+ gsub_file "db/migrate/#{@migration_number}_add_devise_to_#{model_name}.rb", /devise_model/, "#{model_name}"
23
+ gsub_file "db/migrate/#{@migration_number}_add_devise_to_#{model_name}.rb", /DeviseModel/, "#{model_name.capitalize}"
24
24
 
25
25
  #sleep 1 # ensure scripts have different timestamps
26
26
  end
@@ -20,8 +20,8 @@ module OldSql
20
20
  def create_migration_file
21
21
  sleep 1 # ensure scripts have different timestamps
22
22
  migration_template 'add_old_sql_admin_to_users_migration.rb', "db/migrate/add_old_sql_admin_to_#{model_name}.rb" rescue p $!.message
23
- gsub_file "db/migrate/#{@migration_number}_add_old_sql_admin_to_#{model_name}.rb", /device_model/, "#{model_name}"
24
- gsub_file "db/migrate/#{@migration_number}_add_old_sql_admin_to_#{model_name}.rb", /DeviceModel/, "#{model_name.capitalize}"
23
+ gsub_file "db/migrate/#{@migration_number}_add_old_sql_admin_to_#{model_name}.rb", /devise_model/, "#{model_name}"
24
+ gsub_file "db/migrate/#{@migration_number}_add_old_sql_admin_to_#{model_name}.rb", /DeviseModel/, "#{model_name.capitalize}"
25
25
  #sleep 1 # ensure scripts have different timestamps
26
26
  end
27
27
  end
@@ -3,45 +3,45 @@ class AddDeviseToDeviseModel < ActiveRecord::Migration
3
3
  null = false
4
4
  default = ""
5
5
 
6
- add_column :device_model, :encrypted_password, :string, :null => null, :default => default, :limit => 128
7
- add_column :device_model, :password_salt, :string
8
- add_column :device_model, :authentication_token, :string
9
- add_column :device_model, :confirmation_token, :string
10
- add_column :device_model, :confirmed_at, :datetime
11
- add_column :device_model, :confirmation_sent_at, :datetime
12
- add_column :device_model, :reset_password_token, :string
13
- add_column :device_model, :remember_token, :string
14
- add_column :device_model, :remember_created_at, :datetime
15
- add_column :device_model, :sign_in_count, :integer, :default => 0
16
- add_column :device_model, :current_sign_in_at, :datetime
17
- add_column :device_model, :last_sign_in_at, :datetime
18
- add_column :device_model, :current_sign_in_ip, :string
19
- add_column :device_model, :last_sign_in_ip, :string
6
+ add_column :devise_modell, :encrypted_password, :string, :null => null, :default => default, :limit => 128
7
+ add_column :devise_modell, :password_salt, :string
8
+ add_column :devise_modell, :authentication_token, :string
9
+ add_column :devise_modell, :confirmation_token, :string
10
+ add_column :devise_modell, :confirmed_at, :datetime
11
+ add_column :devise_modell, :confirmation_sent_at, :datetime
12
+ add_column :devise_modell, :reset_password_token, :string
13
+ add_column :devise_modell, :remember_token, :string
14
+ add_column :devise_modell, :remember_created_at, :datetime
15
+ add_column :devise_modell, :sign_in_count, :integer, :default => 0
16
+ add_column :devise_modell, :current_sign_in_at, :datetime
17
+ add_column :devise_modell, :last_sign_in_at, :datetime
18
+ add_column :devise_modell, :current_sign_in_ip, :string
19
+ add_column :devise_modell, :last_sign_in_ip, :string
20
20
 
21
21
  #:lockable fields contributed by MattSlay
22
- add_column :device_model, :failed_attempts, :integer, :default => 0
23
- add_column :device_model, :unlock_token, :string
24
- add_column :device_model, :locked_at, :datetime
22
+ add_column :devise_modell, :failed_attempts, :integer, :default => 0
23
+ add_column :devise_modell, :unlock_token, :string
24
+ add_column :devise_modell, :locked_at, :datetime
25
25
 
26
26
  end
27
27
 
28
28
  def self.down
29
- remove_column :device_model, :encrypted_password
30
- remove_column :device_model, :password_salt
31
- remove_column :device_model, :authentication_token
32
- remove_column :device_model, :confirmation_token
33
- remove_column :device_model, :confirmed_at
34
- remove_column :device_model, :confirmation_sent_at
35
- remove_column :device_model, :reset_password_token
36
- remove_column :device_model, :remember_token
37
- remove_column :device_model, :remember_created_at
38
- remove_column :device_model, :sign_in_count
39
- remove_column :device_model, :current_sign_in_at
40
- remove_column :device_model, :last_sign_in_at
41
- remove_column :device_model, :current_sign_in_ip
42
- remove_column :device_model, :last_sign_in_ip
43
- remove_column :device_model, :failed_attempts
44
- remove_column :device_model, :unlock_token
45
- remove_column :device_model, :locked_at
29
+ remove_column :devise_modell, :encrypted_password
30
+ remove_column :devise_modell, :password_salt
31
+ remove_column :devise_modell, :authentication_token
32
+ remove_column :devise_modell, :confirmation_token
33
+ remove_column :devise_modell, :confirmed_at
34
+ remove_column :devise_modell, :confirmation_sent_at
35
+ remove_column :devise_modell, :reset_password_token
36
+ remove_column :devise_modell, :remember_token
37
+ remove_column :devise_modell, :remember_created_at
38
+ remove_column :devise_modell, :sign_in_count
39
+ remove_column :devise_modell, :current_sign_in_at
40
+ remove_column :devise_modell, :last_sign_in_at
41
+ remove_column :devise_modell, :current_sign_in_ip
42
+ remove_column :devise_modell, :last_sign_in_ip
43
+ remove_column :devise_modell, :failed_attempts
44
+ remove_column :devise_modell, :unlock_token
45
+ remove_column :devise_modell, :locked_at
46
46
  end
47
47
  end
@@ -1,9 +1,9 @@
1
1
  class AddOldSqlAdminToDeviseModel < ActiveRecord::Migration
2
2
  def self.up
3
- add_column :device_model, :old_sql_admin, :boolean, :default => false
3
+ add_column :devise_model, :old_sql_admin, :boolean, :default => false
4
4
  end
5
5
 
6
6
  def self.down
7
- remove_column :device_model, :old_sql_admin
7
+ remove_column :devise_model, :old_sql_admin
8
8
  end
9
9
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: old_sql
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.46.0
5
+ version: 1.47.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Eddie Gonzales
@@ -198,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - ">="
200
200
  - !ruby/object:Gem::Version
201
- hash: -2019827182926410088
201
+ hash: 391488968886053133
202
202
  segments:
203
203
  - 0
204
204
  version: "0"