diff --git a/db/migrate/005_add_design_support.rb b/db/migrate/005_add_design_support.rb new file mode 100644 index 0000000..678503b --- /dev/null +++ b/db/migrate/005_add_design_support.rb @@ -0,0 +1,27 @@ +class ManageTemplateMigration < ActiveRecord::Migration + def self.up + create_table :boxes do |t| + t.column :name, :string + t.column :title, :string + t.column :number, :integer + t.column :owner_type, :string + t.column :owner_id, :integer + end + + create_table :blocks do |t| + t.column :name, :string + t.column :title, :string + t.column :box_id, :integer + t.column :position, :integer + t.column :type, :string + t.column :helper, :string + end + + end + + def self.down + drop_table :boxes + drop_table :blocks + end + +end diff --git a/db/migrate/005_manage_template_migration.rb b/db/migrate/005_manage_template_migration.rb deleted file mode 100644 index 678503b..0000000 --- a/db/migrate/005_manage_template_migration.rb +++ /dev/null @@ -1,27 +0,0 @@ -class ManageTemplateMigration < ActiveRecord::Migration - def self.up - create_table :boxes do |t| - t.column :name, :string - t.column :title, :string - t.column :number, :integer - t.column :owner_type, :string - t.column :owner_id, :integer - end - - create_table :blocks do |t| - t.column :name, :string - t.column :title, :string - t.column :box_id, :integer - t.column :position, :integer - t.column :type, :string - t.column :helper, :string - end - - end - - def self.down - drop_table :boxes - drop_table :blocks - end - -end -- libgit2 0.21.2