Sha256: d76b90202c226d6c94f5054a71c539cbbb3169ff3b82ee8bf86d5397b9b16073

Contents?: true

Size: 259 Bytes

Versions: 1

Compression:

Stored size: 259 Bytes

Contents

class CreatePagePaths < ActiveRecord::Migration
  def change
    create_table :page_paths do |t|
      t.belongs_to :page
      t.string :locale, :path
      t.timestamps null: false
    end
    add_index :page_paths, [:locale, :path], unique: true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pages_core-3.5.1 db/migrate/20151002174800_create_page_paths.rb