Sha256: 85c82fc2d6c47869813eb2f636a23a3f9071402c840fda7d76e3aeee429b1bb1

Contents?: true

Size: 757 Bytes

Versions: 16

Compression:

Stored size: 757 Bytes

Contents

class AddCategory < ActiveRecord::Migration
  def up
    create_table "core_category_translations", :force => true do |t|
      t.integer     :core_category_id
      t.string      :locale
      t.string      :name
      t.string      :description
      t.datetime    :created_at
      t.datetime    :updated_at
    end

    add_index "core_category_translations", ["core_category_id"], :name => "index_category_translation"

    create_table "core_categories", :force => true do |t|
      t.string      :type
      t.integer     :row_order
      t.integer     :account_id
      t.datetime    :created_on
      t.datetime    :updated_on
    end
  end

  def down
    drop_table      :core_categories
    drop_table      :core_category_translations
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm_core-4.2.3.10 db/migrate/20130429191051_add_category.rb
dm_core-4.2.3.9 db/migrate/20130429191051_add_category.rb
dm_core-4.2.3.8 db/migrate/20130429191051_add_category.rb
dm_core-4.2.3.7 db/migrate/20130429191051_add_category.rb
dm_core-4.2.3.6 db/migrate/20130429191051_add_category.rb
dm_core-4.2.3.5 db/migrate/20130429191051_add_category.rb
dm_core-4.2.3.4 db/migrate/20130429191051_add_category.rb
dm_core-4.2.3.3 db/migrate/20130429191051_add_category.rb
dm_core-4.2.3.2 db/migrate/20130429191051_add_category.rb
dm_core-4.2.3.1 db/migrate/20130429191051_add_category.rb
dm_core-4.2.3 db/migrate/20130429191051_add_category.rb
dm_core-4.2.2.3 db/migrate/20130429191051_add_category.rb
dm_core-4.2.2.2 db/migrate/20130429191051_add_category.rb
dm_core-4.2.2.1 db/migrate/20130429191051_add_category.rb
dm_core-4.2.2 db/migrate/20130429191051_add_category.rb
dm_core-4.2.1.5 db/migrate/20130429191051_add_category.rb