Sha256: bbc0d7fafbaa4ff20019bc51e325e16ee67527a406b20324deae7f2e71689b73

Contents?: true

Size: 969 Bytes

Versions: 12

Compression:

Stored size: 969 Bytes

Contents

class CreateOtherNodes < ActiveRecord::Migration[5.0]
  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

12 entries across 12 versions & 1 rubygems

Version Path
releaf-core-3.1.0 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-3.0.3 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-3.0.2 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-3.0.1 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-3.0.0 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-2.2.1 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-2.2.0 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-2.1.2 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-2.1.1 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-2.1.0 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-2.0.1 lib/generators/dummy/templates/migrations/create_other_nodes.rb
releaf-core-2.0.0 lib/generators/dummy/templates/migrations/create_other_nodes.rb