diff --git a/db/migrate/20150615215500_alter_column_articles_start_date.rb b/db/migrate/20150615215500_alter_column_articles_start_date.rb new file mode 100644 index 0000000..eef2e79 --- /dev/null +++ b/db/migrate/20150615215500_alter_column_articles_start_date.rb @@ -0,0 +1,13 @@ +class AlterColumnArticlesStartDate < ActiveRecord::Migration + def up + change_table :articles do |t| + t.change :start_date, :datetime + end + end + + def down + change_table :articles do |t| + t.change :start_date, :date + end + end +end diff --git a/db/migrate/20150615215658_alter_column_articles_end_date.rb b/db/migrate/20150615215658_alter_column_articles_end_date.rb new file mode 100644 index 0000000..e410904 --- /dev/null +++ b/db/migrate/20150615215658_alter_column_articles_end_date.rb @@ -0,0 +1,13 @@ +class AlterColumnArticlesEndDate < ActiveRecord::Migration + def up + change_table :articles do |t| + t.change :end_date, :datetime + end + end + + def down + change_table :articles do |t| + t.change :end_date, :date + end + end +end diff --git a/db/migrate/20150615222147_alter_column_article_versions_end_date.rb b/db/migrate/20150615222147_alter_column_article_versions_end_date.rb new file mode 100644 index 0000000..733ce28 --- /dev/null +++ b/db/migrate/20150615222147_alter_column_article_versions_end_date.rb @@ -0,0 +1,13 @@ +class AlterColumnArticleVersionsEndDate < ActiveRecord::Migration + def up + change_table :article_versions do |t| + t.change :end_date, :datetime + end + end + + def down + change_table :article_versions do |t| + t.change :end_date, :date + end + end +end diff --git a/db/migrate/20150615222204_alter_column_article_versions_start_date.rb b/db/migrate/20150615222204_alter_column_article_versions_start_date.rb new file mode 100644 index 0000000..311aff1 --- /dev/null +++ b/db/migrate/20150615222204_alter_column_article_versions_start_date.rb @@ -0,0 +1,13 @@ +class AlterColumnArticleVersionsStartDate < ActiveRecord::Migration + def up + change_table :article_versions do |t| + t.change :start_date, :datetime + end + end + + def down + change_table :article_versions do |t| + t.change :start_date, :date + end + end +end \ No newline at end of file -- libgit2 0.21.2