react-code-dataset / facenovel /db /migrate /20180814190547_add_constraints_to_user_url.rb
Devendra174's picture
Upload folder using huggingface_hub
f5071ca verified
raw
history blame contribute delete
188 Bytes
class AddConstraintsToUserUrl < ActiveRecord::Migration[5.1]
def change
change_column :users, :user_url, :string, null: false
add_index :users, :user_url, unique: true
end
end