Commit 91dd1533e5db5b6d9bd91a902d139b9dcdb12da3
1 parent
c0e66bcf
Exists in
master
and in
29 other branches
ActionItem629: more data must be set in migration
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2430 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
db/migrate/050_add_public_column_to_articles_and_profiles.rb
@@ -4,6 +4,8 @@ class AddPublicColumnToArticlesAndProfiles < ActiveRecord::Migration | @@ -4,6 +4,8 @@ class AddPublicColumnToArticlesAndProfiles < ActiveRecord::Migration | ||
4 | execute("update profiles set public_profile = (1>0) where data not like '%public_profile: false%'") | 4 | execute("update profiles set public_profile = (1>0) where data not like '%public_profile: false%'") |
5 | 5 | ||
6 | add_column :articles, :public_article, :boolean, :default => true | 6 | add_column :articles, :public_article, :boolean, :default => true |
7 | + execute('update articles set public_article = (1>0)') | ||
8 | + | ||
7 | add_column :article_versions, :public_article, :boolean, :default => true | 9 | add_column :article_versions, :public_article, :boolean, :default => true |
8 | end | 10 | end |
9 | 11 |