Skip to content

Commit

Permalink
Make index of data migrations table match that of schema migrations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew J Vargo committed Apr 19, 2011
1 parent bc9cea4 commit 30c9241
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
class CreateDataMigrations < ActiveRecord::Migration
def self.up
create_table :data_migrations do |t|
t.string :version
t.string :version, :null => false
end

add_index :data_migrations, :version
add_index :data_migrations, :version, :unique => true, :name => "<%= ActiveRecord::Base.table_name_prefix %>unique_data_migrations<%= ActiveRecord::Base.table_name_suffix %>"
end

def self.down
Expand Down

0 comments on commit 30c9241

Please sign in to comment.