diff --git a/db/migrate/036_add_published_field_to_article.rb b/db/migrate/036_add_published_field_to_article.rb index ebaf5be..33f3174 100644 --- a/db/migrate/036_add_published_field_to_article.rb +++ b/db/migrate/036_add_published_field_to_article.rb @@ -1,7 +1,7 @@ class AddPublishedFieldToArticle < ActiveRecord::Migration def self.up add_column :articles, :published, :boolean, :default => true - execute('update articles set published = 1') + execute('update articles set published = (1>0)') add_column :article_versions, :published, :boolean, :default => true end diff --git a/db/migrate/037_add_dates_to_articles.rb b/db/migrate/037_add_dates_to_articles.rb index f143ccc..79ce2e5 100644 --- a/db/migrate/037_add_dates_to_articles.rb +++ b/db/migrate/037_add_dates_to_articles.rb @@ -8,8 +8,8 @@ class AddDatesToArticles < ActiveRecord::Migration def self.up each_table do |table| - add_column table, :start_date, :type => :date - add_column table, :end_date, :type => :date + add_column table, :start_date, :date + add_column table, :end_date, :date end end -- libgit2 0.21.2