Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Commit

Permalink
#8 <@irlatrevisan, @lrsousa> - Alterar default notification
Browse files Browse the repository at this point in the history
  • Loading branch information
irlatrevisan committed Oct 27, 2016
1 parent 6ad142e commit 2bd2a79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ChangeNotificationFromUserBloodDonator < ActiveRecord::Migration[5.0]
def change
change_column_default :user_blood_donators, :notification, true
end
end
4 changes: 2 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20161027135859) do
ActiveRecord::Schema.define(version: 20161027153705) do

create_table "active_admin_comments", force: :cascade do |t|
t.string "namespace"
Expand Down Expand Up @@ -110,7 +110,7 @@
t.date "date_birth"
t.string "phone"
t.string "cpf"
t.boolean "notification"
t.boolean "notification", default: true
t.string "genre"
t.string "blood_type"
t.boolean "admin", default: false
Expand Down

0 comments on commit 2bd2a79

Please sign in to comment.