Skip to content
Extraits de code Groupes Projets
Valider d516d0a0 rédigé par danielgrippi's avatar danielgrippi
Parcourir les fichiers

migration

parent 2a449aa8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
class DisablePasswordResetForAccountsWithoutUsernames < ActiveRecord::Migration
def self.up
execute <<SQL
UPDATE users
SET email = ""
WHERE username IS NULL
AND invitation_identifier IS NOT NULL
AND invitation_service = 'email'
SQL
end
def self.down
raise ActiveRecord::IrreversibleMigration.new
end
end
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# #
# It's strongly recommended to check this file into your version control system. # It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20110517180148) do ActiveRecord::Schema.define(:version => 20110518010050) do
create_table "aspect_memberships", :force => true do |t| create_table "aspect_memberships", :force => true do |t|
t.integer "aspect_id", :null => false t.integer "aspect_id", :null => false
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter