Sha256: 98bbca49dacdf5046faa7c7fb3fccf6fe7639d31aa2563e2bcf4cea0ef576a7f

Contents?: true

Size: 438 Bytes

Versions: 4

Compression:

Stored size: 438 Bytes

Contents

class CreateComableNavigationItem < ActiveRecord::Migration
  def change
    create_table :comable_navigation_items do |t|
      t.references :navigation, null: false
      t.integer :linkable_id
      t.string :linkable_type
      t.integer :position, null: false
      t.string :name, null: false
      t.string :url
      t.timestamps null: false
    end

    add_index :comable_navigation_items, [:position, :navigation_id]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
comable-core-0.7.1 db/migrate/20150706085056_create_comable_navigation_item.rb
comable-core-0.7.0 db/migrate/20150706085056_create_comable_navigation_item.rb
comable-core-0.7.0.beta2 db/migrate/20150706085056_create_comable_navigation_item.rb
comable-core-0.7.0.beta1 db/migrate/20150706085056_create_comable_navigation_item.rb