Commit fae0594b58364359df58fcef720bef8f3e6eea89

Authored by LeandroNunes
1 parent df6f32a7

ActionItem0: generating migration of manage_template plugin

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@79 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 24 additions and 0 deletions   Show diff stats
db/migrate/005_manage_template_migration.rb 0 → 100644
... ... @@ -0,0 +1,24 @@
  1 +class ManageTemplateMigration < ActiveRecord::Migration
  2 + def self.up
  3 + create_table :boxes do |t|
  4 + t.column :name, :string
  5 + t.column :number, :integer
  6 + t.column :owner_type, :string
  7 + t.column :owner_id, :integer
  8 + end
  9 +
  10 + create_table :blocks do |t|
  11 + t.column :name, :string
  12 + t.column :box_id, :integer
  13 + t.column :position, :integer
  14 + t.column :type, :string
  15 + end
  16 +
  17 + end
  18 +
  19 + def self.down
  20 + drop_table :boxes
  21 + drop_table :blocks
  22 + end
  23 +
  24 +end
... ...