Commit 6691701b993768d29114f1fd644db64f70255e03

Authored by AntonioTerceiro
1 parent cc7f7633

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 class ManageTemplateMigration < ActiveRecord::Migration 1 class ManageTemplateMigration < ActiveRecord::Migration
2 def self.up 2 def self.up
3 - create_table :boxes do |t| 3 +
  4 + create_table :design_boxes do |t|
4 t.column :name, :string 5 t.column :name, :string
5 t.column :title, :string 6 t.column :title, :string
6 t.column :number, :integer 7 t.column :number, :integer
@@ -8,7 +9,7 @@ class ManageTemplateMigration &lt; ActiveRecord::Migration @@ -8,7 +9,7 @@ class ManageTemplateMigration &lt; ActiveRecord::Migration
8 t.column :owner_id, :integer 9 t.column :owner_id, :integer
9 end 10 end
10 11
11 - create_table :blocks do |t| 12 + create_table :design_blocks do |t|
12 t.column :name, :string 13 t.column :name, :string
13 t.column :title, :string 14 t.column :title, :string
14 t.column :box_id, :integer 15 t.column :box_id, :integer
@@ -20,8 +21,8 @@ class ManageTemplateMigration &lt; ActiveRecord::Migration @@ -20,8 +21,8 @@ class ManageTemplateMigration &lt; ActiveRecord::Migration
20 end 21 end
21 22
22 def self.down 23 def self.down
23 - drop_table :boxes  
24 - drop_table :blocks 24 + drop_table :design_boxes
  25 + drop_table :design_blocks
25 end 26 end
26 27
27 end 28 end