diff --git a/db/migrate/005_manage_template_migration.rb b/db/migrate/005_manage_template_migration.rb new file mode 100644 index 0000000..350cc42 --- /dev/null +++ b/db/migrate/005_manage_template_migration.rb @@ -0,0 +1,24 @@ +class ManageTemplateMigration < ActiveRecord::Migration + def self.up + create_table :boxes do |t| + t.column :name, :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 :box_id, :integer + t.column :position, :integer + t.column :type, :string + end + + end + + def self.down + drop_table :boxes + drop_table :blocks + end + +end -- libgit2 0.21.2