Commit d59fcd8f87e2faca69e6a5487952620d7770e521
1 parent
9a1c00d4
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Migrates
Showing
4 changed files
with
52 additions
and
0 deletions
Show diff stats
db/migrate/20150615215500_alter_column_articles_start_date.rb
0 → 100644
@@ -0,0 +1,13 @@ | @@ -0,0 +1,13 @@ | ||
1 | +class AlterColumnArticlesStartDate < ActiveRecord::Migration | ||
2 | + def up | ||
3 | + change_table :articles do |t| | ||
4 | + t.change :start_date, :datetime | ||
5 | + end | ||
6 | + end | ||
7 | + | ||
8 | + def down | ||
9 | + change_table :articles do |t| | ||
10 | + t.change :start_date, :date | ||
11 | + end | ||
12 | + end | ||
13 | +end |
db/migrate/20150615215658_alter_column_articles_end_date.rb
0 → 100644
db/migrate/20150615222147_alter_column_article_versions_end_date.rb
0 → 100644
@@ -0,0 +1,13 @@ | @@ -0,0 +1,13 @@ | ||
1 | +class AlterColumnArticleVersionsEndDate < ActiveRecord::Migration | ||
2 | + def up | ||
3 | + change_table :article_versions do |t| | ||
4 | + t.change :end_date, :datetime | ||
5 | + end | ||
6 | + end | ||
7 | + | ||
8 | + def down | ||
9 | + change_table :article_versions do |t| | ||
10 | + t.change :end_date, :date | ||
11 | + end | ||
12 | + end | ||
13 | +end |
db/migrate/20150615222204_alter_column_article_versions_start_date.rb
0 → 100644
@@ -0,0 +1,13 @@ | @@ -0,0 +1,13 @@ | ||
1 | +class AlterColumnArticleVersionsStartDate < ActiveRecord::Migration | ||
2 | + def up | ||
3 | + change_table :article_versions do |t| | ||
4 | + t.change :start_date, :datetime | ||
5 | + end | ||
6 | + end | ||
7 | + | ||
8 | + def down | ||
9 | + change_table :article_versions do |t| | ||
10 | + t.change :start_date, :date | ||
11 | + end | ||
12 | + end | ||
13 | +end | ||
0 | \ No newline at end of file | 14 | \ No newline at end of file |