Commit 677ad3017b35628038ef83014c31c7a40c749207
1 parent
7f081b0c
Exists in
master
and in
29 other branches
r269@sede: terceiro | 2007-07-29 23:51:59 -0300
ActionItem0: adding migration generator git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@273 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
27 additions
and
0 deletions
Show diff stats
vendor/plugins/design/generators/design_migration/templates/migration.rb
0 → 100644
... | ... | @@ -0,0 +1,27 @@ |
1 | +class FlexibleTemplateMigration < ActiveRecord::Migration | |
2 | + def self.up | |
3 | + create_table :design_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 :design_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 :design_boxes | |
24 | + drop_table :design_blocks | |
25 | + end | |
26 | + | |
27 | +end | ... | ... |