Sha256: 00e1d29449334f4d87c9a9bdfccd08f3777bc50607bf62e09d014d3057cd32e1

Contents?: true

Size: 921 Bytes

Versions: 7

Compression:

Stored size: 921 Bytes

Contents

# frozen_string_literal: true

# This migration comes from spina (originally 3)
class CreateSpinaNavigations < ActiveRecord::Migration[4.2]
  def change
    create_table 'spina_navigations', force: :cascade do |t|
      t.string 'name', null: false
      t.string 'label', null: false
      t.boolean 'auto_add_pages', null: false, default: false
      t.integer 'position', default: 0, null: false
      t.timestamps
      t.index ['name'], name: 'index_spina_navigations_on_name', unique: true, using: :btree
    end

    create_table 'spina_navigation_items', force: :cascade do |t|
      t.integer 'page_id', null: false
      t.integer 'navigation_id', null: false
      t.integer 'position', default: 0, null: false
      t.string 'ancestry'
      t.timestamps
      t.index %w[page_id navigation_id], name: 'index_spina_navigation_items_on_page_id_and_navigation_id', unique: true, using: :btree
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spina-admin-conferences-blog-0.3.1 spec/dummy/db/migrate/20190513103731_create_spina_navigations.spina.rb
spina-admin-conferences-blog-0.2.0 spec/dummy/db/migrate/20190513103731_create_spina_navigations.spina.rb
spina-admin-conferences-blog-0.1.4 spec/dummy/db/migrate/20190513103731_create_spina_navigations.spina.rb
spina-admin-conferences-blog-0.1.3 spec/dummy/db/migrate/20190513103731_create_spina_navigations.spina.rb
spina-admin-conferences-blog-0.1.2 spec/dummy/db/migrate/20190513103731_create_spina_navigations.spina.rb
spina-admin-conferences-blog-0.1.1 spec/dummy/db/migrate/20190513103731_create_spina_navigations.spina.rb
spina-admin-conferences-blog-0.1.0 spec/dummy/db/migrate/20190513103731_create_spina_navigations.spina.rb