Sha256: 5b6eb8db4e949eadf64eb9a52b3f3e548e31cac871e7bb21ea2e33479a3d5d67
Contents?: true
Size: 432 Bytes
Versions: 2
Compression:
Stored size: 432 Bytes
Contents
class RenameUserIdColumnsToVaultId < ActiveRecord::Migration def change remove_index :gringotts_settings, :user_id rename_column :gringotts_settings, :user_id, :vault_id add_index :gringotts_settings, :vault_id, unique: true remove_index :gringotts_attempts, :user_id rename_column :gringotts_attempts, :user_id, :vault_id add_index :gringotts_attempts, :vault_id, unique: false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gringotts-0.6.7 | db/migrate/20131024192122_rename_user_id_columns_to_vault_id.rb |
gringotts-0.6.5 | db/migrate/20131024192122_rename_user_id_columns_to_vault_id.rb |