mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Added reverse method to migration
This commit is contained in:
parent
56c69f51b7
commit
e57c83c355
1 changed files with 5 additions and 1 deletions
|
|
@ -1,5 +1,9 @@
|
|||
class ChangeEmailPublicFromUsers < ActiveRecord::Migration
|
||||
def change
|
||||
def up
|
||||
change_column_default :users, :email_public, true
|
||||
end
|
||||
|
||||
def down
|
||||
change_column_default :users, :email_public, nil
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue