Sha256: e8092db7175916a6d1628cf317dffac190415689f291f4de172840b9c9012d8e

Contents?: true

Size: 225 Bytes

Versions: 4

Compression:

Stored size: 225 Bytes

Contents

class ReplaceSnippetNameUniqueIndex < ActiveRecord::Migration
  def self.up
    remove_index :snippets, :name => :name
  end
  
  
  def self.down
    add_index "snippets", ["name"], :name => "name", :unique => true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
radiant-vhost-extension-2.3.1 db/migrate/003_replace_snippet_name_unique_index.rb
radiant-vhost-extension-2.3.0 db/migrate/003_replace_snippet_name_unique_index.rb
radiant-vhost-extension-2.2.0 db/migrate/003_replace_snippet_name_unique_index.rb
radiant-vhost-extension-2.1.0 db/migrate/003_replace_snippet_name_unique_index.rb