Sha256: 40388c527b087da2e0a09042503eddedcc9979a8b7690ec7f2eba72b92e11a92
Contents?: true
Size: 457 Bytes
Versions: 39
Compression:
Stored size: 457 Bytes
Contents
class CreateSluggedSlugs < ActiveRecord::Migration def self.up create_table :slugs do |t| t.string :scope t.string :slug t.integer :record_id t.datetime :created_at end add_index :slugs, [:scope, :slug] add_index :slugs, [:scope, :record_id] add_index :slugs, [:scope, :slug, :created_at] add_index :slugs, [:scope, :record_id, :created_at] end def self.down drop_table :slugs end end
Version data entries
39 entries across 39 versions & 2 rubygems