Sha256: 8692d98d6199d85158510b4cc33e786de28d6ae5b7f4add5075defe600c95a29
Contents?: true
Size: 909 Bytes
Versions: 11
Compression:
Stored size: 909 Bytes
Contents
class CreatePhcdevworksMembersFriendlyIdSlugs < ActiveRecord::Migration[6.0] def change create_table :phcdevworks_members_friendly_id_slugs do |t| t.string :slug, :null => false t.integer :sluggable_id, :null => false t.string :sluggable_type, :limit => 50 t.string :scope t.datetime :created_at end add_index :phcdevworks_members_friendly_id_slugs, :sluggable_id, name: 'phcm_slugable_id' add_index :phcdevworks_members_friendly_id_slugs, [:slug, :sluggable_type], name: 'phcm_slug_slugable_type', length: { slug: 140, sluggable_type: 50 } add_index :phcdevworks_members_friendly_id_slugs, [:slug, :sluggable_type, :scope], name: 'phcm_slugable_type_scope', length: { slug: 70, sluggable_type: 50, scope: 70 }, unique: true add_index :phcdevworks_members_friendly_id_slugs, :sluggable_type, name: 'phcm_slugable_type' end end
Version data entries
11 entries across 11 versions & 1 rubygems