Commit 6691701b993768d29114f1fd644db64f70255e03
1 parent
cc7f7633
Exists in
staging
and in
42 other branches
r224@sede: terceiro | 2007-07-28 16:15:45 -0300
ActionItem7: renaming design tables git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@228 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
db/migrate/005_add_design_support.rb
| 1 | 1 | class ManageTemplateMigration < ActiveRecord::Migration |
| 2 | 2 | def self.up |
| 3 | - create_table :boxes do |t| | |
| 3 | + | |
| 4 | + create_table :design_boxes do |t| | |
| 4 | 5 | t.column :name, :string |
| 5 | 6 | t.column :title, :string |
| 6 | 7 | t.column :number, :integer |
| ... | ... | @@ -8,7 +9,7 @@ class ManageTemplateMigration < ActiveRecord::Migration |
| 8 | 9 | t.column :owner_id, :integer |
| 9 | 10 | end |
| 10 | 11 | |
| 11 | - create_table :blocks do |t| | |
| 12 | + create_table :design_blocks do |t| | |
| 12 | 13 | t.column :name, :string |
| 13 | 14 | t.column :title, :string |
| 14 | 15 | t.column :box_id, :integer |
| ... | ... | @@ -20,8 +21,8 @@ class ManageTemplateMigration < ActiveRecord::Migration |
| 20 | 21 | end |
| 21 | 22 | |
| 22 | 23 | def self.down |
| 23 | - drop_table :boxes | |
| 24 | - drop_table :blocks | |
| 24 | + drop_table :design_boxes | |
| 25 | + drop_table :design_blocks | |
| 25 | 26 | end |
| 26 | 27 | |
| 27 | 28 | end | ... | ... |