summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorhukl <hukl@eight.local>2009-01-31 23:13:07 +0100
committerhukl <hukl@eight.local>2009-01-31 23:13:07 +0100
commita214a1516bacc45c0ec8975decec2421ebb2e580 (patch)
tree3de9e10b337e43efd972738415138d36fd468002 /db
parent5273b18eac02533b11c5b69d27f36fe8c25e0186 (diff)
add published_at to pages
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20090131213536_add_published_at_to_pages.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20090131213536_add_published_at_to_pages.rb b/db/migrate/20090131213536_add_published_at_to_pages.rb
new file mode 100644
index 0000000..0e4ee62
--- /dev/null
+++ b/db/migrate/20090131213536_add_published_at_to_pages.rb
@@ -0,0 +1,9 @@
1class AddPublishedAtToPages < ActiveRecord::Migration
2 def self.up
3 add_column :pages, :published_at, :datetime
4 end
5
6 def self.down
7 remove_column :pages, :published_at
8 end
9end