diff options
| author | hukl <hukl@eight.local> | 2009-01-31 23:13:07 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-01-31 23:13:07 +0100 |
| commit | a214a1516bacc45c0ec8975decec2421ebb2e580 (patch) | |
| tree | 3de9e10b337e43efd972738415138d36fd468002 | |
| parent | 5273b18eac02533b11c5b69d27f36fe8c25e0186 (diff) | |
add published_at to pages
| -rw-r--r-- | db/migrate/20090131213536_add_published_at_to_pages.rb | 9 |
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 @@ | |||
| 1 | class 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 | ||
| 9 | end | ||
