Sha256: 47d6344cba835a2efcd837251de7df08670f77269840a54336bb5a9d389c9342

Contents?: true

Size: 964 Bytes

Versions: 31

Compression:

Stored size: 964 Bytes

Contents

class CreateOtherNodes < ActiveRecord::Migration
  def change
    create_table "other_nodes", :force => true do |t|
      t.string   "name"
      t.string   "slug"
      t.integer  "parent_id"
      t.integer  "lft"
      t.integer  "rgt"
      t.integer  "depth"
      t.string   "locale",          :limit => 6
      t.string   "content_type"
      t.integer  "content_id"
      t.datetime "created_at",      :null => false
      t.datetime "updated_at",      :null => false
      t.integer  "item_position"
      t.boolean  'active',          :null => false, :default => true
      t.text     'description'
    end
    add_index :other_nodes, :parent_id
    add_index :other_nodes, [:content_type, :content_id]
    add_index :other_nodes, :lft
    add_index :other_nodes, :rgt
    add_index :other_nodes, :depth
    add_index :other_nodes, :slug
    add_index :other_nodes, :name
    add_index :other_nodes, :active
    add_index :other_nodes, :locale
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
releaf-core-1.1.22 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.21 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.20 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.19 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.18 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.17 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.16 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.15 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.14 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.13 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.12 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.11 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.10 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.9 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.8 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.7 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.6 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.5 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.4 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-1.1.3 lib/generators/dummy/templates/migrations/create_other_nodes.rb