Sha256: 94e617308cb85104c566de53ec896bbae89fac2d4122b5b0c2024eb8a124c94b

Contents?: true

Size: 457 Bytes

Versions: 9

Compression:

Stored size: 457 Bytes

Contents

class CreateSimpleSlugHistorySlug < ActiveRecord::Migration
  def change
    create_table :simple_slug_history_slug do |t|
      t.string :slug, null: false
      t.integer :sluggable_id, null: false
      t.string :sluggable_type, limit: 50, null: false
      t.datetime :created_at
    end

    add_index :simple_slug_history_slug, [:slug, :sluggable_type], unique: true
    add_index :simple_slug_history_slug, [:sluggable_type, :sluggable_id]
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
simple_slug-0.3.5 db/migrate/20140113000001_create_simple_slug_history_slug.rb
simple_slug-0.3.4 db/migrate/20140113000001_create_simple_slug_history_slug.rb
simple_slug-0.3.3 db/migrate/20140113000001_create_simple_slug_history_slug.rb
simple_slug-0.3.2 db/migrate/20140113000001_create_simple_slug_history_slug.rb
simple_slug-0.3.1 db/migrate/20140113000001_create_simple_slug_history_slug.rb
simple_slug-0.3.0 db/migrate/20140113000001_create_simple_slug_history_slug.rb
simple_slug-0.2.0 db/migrate/20140113000001_create_simple_slug_history_slug.rb
simple_slug-0.1.0 db/migrate/20140113000001_create_simple_slug_history_slug.rb
simple_slug-0.0.1 db/migrate/20140113000001_create_simple_slug_history_slug.rb