Sha256: b931d68b5a5950922152f65b6176c3f86cf3e1642293d6b33c7f9ad11319e8ca
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
# This migration comes from storytime (originally 20140509191309) class CreateFriendlyIdSlugs < ActiveRecord::Migration def change create_table :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 :friendly_id_slugs, :sluggable_id add_index :friendly_id_slugs, [:slug, :sluggable_type] add_index :friendly_id_slugs, [:slug, :sluggable_type, :scope], :unique => true add_index :friendly_id_slugs, :sluggable_type end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
storytime-1.1.1 | spec/dummy/db/migrate/20150130213632_create_friendly_id_slugs.storytime.rb |