Sha256: 212f8872220d8dbb0a6d8245205d8867137411cd3f16ff9decbe632cca06b03c

Contents?: true

Size: 194 Bytes

Versions: 15

Compression:

Stored size: 194 Bytes

Contents

class AddRepositoryIdToUser < ActiveRecord::Migration
  def change
    add_column User.table_name, :repository_id, :string
    add_index User.table_name, :repository_id, unique: true
  end 
end

Version data entries

15 entries across 13 versions & 1 rubygems

Version Path
curate-0.6.6 db/migrate/20131029142556_add_repository_id_to_user.rb
curate-0.6.5 db/migrate/20131029142556_add_repository_id_to_user.rb
curate-0.6.4 db/migrate/20131029142556_add_repository_id_to_user.rb
curate-0.6.3 db/migrate/20131029142556_add_repository_id_to_user.rb
curate-0.6.1 db/migrate/20131029142556_add_repository_id_to_user.rb
curate-0.6.0 db/migrate/20131029142556_add_repository_id_to_user.rb
curate-0.5.6 db/migrate/20131029142556_add_repository_id_to_user.rb
curate-0.5.5 db/migrate/20131029142556_add_repository_id_to_user.rb
curate-0.5.4 db/migrate/20131029142556_add_repository_id_to_user.rb
curate-0.5.2 db/migrate/20131029142556_add_repository_id_to_user.rb
curate-0.5.1 spec/internal/db/migrate/20131028141236_add_repository_id_to_user.rb
curate-0.5.1 lib/generators/curate/templates/migrations/add_repository_id_to_user.rb
curate-0.5.0 lib/generators/curate/templates/migrations/add_repository_id_to_user.rb
curate-0.5.0 spec/internal/db/migrate/20131018143727_add_repository_id_to_user.rb
curate-0.4.2 lib/generators/curate/templates/migrations/add_repository_id_to_user.rb