diff options
| author | hukl <contact@smyck.org> | 2009-02-19 21:45:49 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-19 21:45:49 +0100 |
| commit | 9ebd7c278ce14e261a45fcb06c798ede7a7ba885 (patch) | |
| tree | 39fe0bfc68514b9743f7e57c9b82d2184fabd9a1 | |
| parent | 0b8cfc272d883e7865461d8ce05cd5c6aabec90e (diff) | |
got the whole globalize system wrong. everything
is in a translation table now. therefor merging
the two separate migrations into on meaningful
| -rw-r--r-- | db/migrate/20090131113802_create_pages.rb | 5 | ||||
| -rw-r--r-- | db/migrate/20090207133449_add_page_translation_table.rb | 8 |
2 files changed, 2 insertions, 11 deletions
diff --git a/db/migrate/20090131113802_create_pages.rb b/db/migrate/20090131113802_create_pages.rb index 7493ffc..6a38038 100644 --- a/db/migrate/20090131113802_create_pages.rb +++ b/db/migrate/20090131113802_create_pages.rb | |||
| @@ -2,13 +2,12 @@ class CreatePages < ActiveRecord::Migration | |||
| 2 | def self.up | 2 | def self.up |
| 3 | create_table :pages do |t| | 3 | create_table :pages do |t| |
| 4 | t.integer :node_id | 4 | t.integer :node_id |
| 5 | t.string :title | ||
| 6 | t.text :abstract | ||
| 7 | t.text :body | ||
| 8 | t.integer :revision | 5 | t.integer :revision |
| 9 | 6 | ||
| 10 | t.timestamps | 7 | t.timestamps |
| 11 | end | 8 | end |
| 9 | |||
| 10 | Page.create_translation_table! :title => :string, :abstract => :text, :body => :text | ||
| 12 | end | 11 | end |
| 13 | 12 | ||
| 14 | def self.down | 13 | def self.down |
diff --git a/db/migrate/20090207133449_add_page_translation_table.rb b/db/migrate/20090207133449_add_page_translation_table.rb deleted file mode 100644 index 50c65e1..0000000 --- a/db/migrate/20090207133449_add_page_translation_table.rb +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | class AddPageTranslationTable < ActiveRecord::Migration | ||
| 2 | def self.up | ||
| 3 | Page.create_translation_table! :title => :string, :abstract => :text, :body => :text | ||
| 4 | end | ||
| 5 | def self.down | ||
| 6 | Page.drop_translation_table! | ||
| 7 | end | ||
| 8 | end | ||
