diff options
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20090302184350_add_template_column_to_pages.rb | 9 | ||||
| -rw-r--r-- | db/migrate/20090302215335_rename_template_to_template_name.rb | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20090302184350_add_template_column_to_pages.rb b/db/migrate/20090302184350_add_template_column_to_pages.rb new file mode 100644 index 0000000..e3aac66 --- /dev/null +++ b/db/migrate/20090302184350_add_template_column_to_pages.rb | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | class AddTemplateColumnToPages < ActiveRecord::Migration | ||
| 2 | def self.up | ||
| 3 | add_column :pages, :template, :string | ||
| 4 | end | ||
| 5 | |||
| 6 | def self.down | ||
| 7 | remove_column :pages, :template | ||
| 8 | end | ||
| 9 | end | ||
diff --git a/db/migrate/20090302215335_rename_template_to_template_name.rb b/db/migrate/20090302215335_rename_template_to_template_name.rb new file mode 100644 index 0000000..288209e --- /dev/null +++ b/db/migrate/20090302215335_rename_template_to_template_name.rb | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | class RenameTemplateToTemplateName < ActiveRecord::Migration | ||
| 2 | def self.up | ||
| 3 | rename_column :pages, :template, :template_name | ||
| 4 | end | ||
| 5 | |||
| 6 | def self.down | ||
| 7 | rename_column :pages, :template_name, :template | ||
| 8 | end | ||
| 9 | end | ||
