Commit cc7f7633c59a598851831a74a5d4168506ec4eae
1 parent
71015018
Exists in
master
and in
28 other branches
r223@sede: terceiro | 2007-07-28 16:14:32 -0300
ActionItem0: renaming migration git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@227 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
27 additions
and
27 deletions
Show diff stats
... | ... | @@ -0,0 +1,27 @@ |
1 | +class ManageTemplateMigration < ActiveRecord::Migration | |
2 | + def self.up | |
3 | + create_table :boxes do |t| | |
4 | + t.column :name, :string | |
5 | + t.column :title, :string | |
6 | + t.column :number, :integer | |
7 | + t.column :owner_type, :string | |
8 | + t.column :owner_id, :integer | |
9 | + end | |
10 | + | |
11 | + create_table :blocks do |t| | |
12 | + t.column :name, :string | |
13 | + t.column :title, :string | |
14 | + t.column :box_id, :integer | |
15 | + t.column :position, :integer | |
16 | + t.column :type, :string | |
17 | + t.column :helper, :string | |
18 | + end | |
19 | + | |
20 | + end | |
21 | + | |
22 | + def self.down | |
23 | + drop_table :boxes | |
24 | + drop_table :blocks | |
25 | + end | |
26 | + | |
27 | +end | ... | ... |
db/migrate/005_manage_template_migration.rb
... | ... | @@ -1,27 +0,0 @@ |
1 | -class ManageTemplateMigration < ActiveRecord::Migration | |
2 | - def self.up | |
3 | - create_table :boxes do |t| | |
4 | - t.column :name, :string | |
5 | - t.column :title, :string | |
6 | - t.column :number, :integer | |
7 | - t.column :owner_type, :string | |
8 | - t.column :owner_id, :integer | |
9 | - end | |
10 | - | |
11 | - create_table :blocks do |t| | |
12 | - t.column :name, :string | |
13 | - t.column :title, :string | |
14 | - t.column :box_id, :integer | |
15 | - t.column :position, :integer | |
16 | - t.column :type, :string | |
17 | - t.column :helper, :string | |
18 | - end | |
19 | - | |
20 | - end | |
21 | - | |
22 | - def self.down | |
23 | - drop_table :boxes | |
24 | - drop_table :blocks | |
25 | - end | |
26 | - | |
27 | -end |