Skip to content

Commit

Permalink
Fix devise generate model migration commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
İsmail Akbudak committed Dec 14, 2018
1 parent 1d3f4b6 commit 5123d07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cybele/helpers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ def devise_seeds
def add_default_value_to_migrations
Dir.glob('db/migrate/*devise_create*.rb') do |file|
replace_in_file file, 't.boolean :is_active', 't.boolean :is_active, default: true'
uncomment_lines file, /t.integer :sign_in_count, default: 0, null: false/
uncomment_lines file, /t.datetime :current_sign_in_at/
uncomment_lines file, /t.datetime :last_sign_in_at/
uncomment_lines file, /t.inet :current_sign_in_ip/
uncomment_lines file, /t.inet :last_sign_in_ip/
end
end
end
Expand Down

0 comments on commit 5123d07

Please sign in to comment.