Sha256: 210cf5550fc8da2ccddc2a8efd140ffd55c857fa00c01a8f43b1233ea29c1325

Contents?: true

Size: 533 Bytes

Versions: 6

Compression:

Stored size: 533 Bytes

Contents

class CreateSimpleSlugHistorySlug < ActiveRecord::Migration
  def change
    create_table :simple_slug_history_slugs do |t|
      t.string :slug, null: false, limit: 191
      t.string :locale, limit: 10
      t.integer :sluggable_id, null: false
      t.string :sluggable_type, limit: 50, null: false
      t.timestamps
    end

    add_index :simple_slug_history_slugs, :slug
    add_index :simple_slug_history_slugs, [:sluggable_type, :sluggable_id], name: 'simple_slug_history_slugs_on_sluggable_type_and_sluggable_id'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_slug-0.4.5 db/migrate/20140113000001_create_simple_slug_history_slug.rb
simple_slug-0.4.4 db/migrate/20140113000001_create_simple_slug_history_slug.rb
simple_slug-0.4.3 db/migrate/20140113000001_create_simple_slug_history_slug.rb
simple_slug-0.4.2 db/migrate/20140113000001_create_simple_slug_history_slug.rb
simple_slug-0.4.1 db/migrate/20140113000001_create_simple_slug_history_slug.rb
simple_slug-0.4.0 db/migrate/20140113000001_create_simple_slug_history_slug.rb